Base URL
https://{tenant}.logzi.com/api/email_template/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0. Email templates contain a subject line and HTML content — the system fills these in automatically when a document is sent out.
/api/email_template/get
Retrieve a single email template by its identifier.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Email template identifier |
Example request
GET /api/email_template/get?id=2
X-API-KEY: {your_api_key}
/api/email_template/list
Retrieve a paginated list of email templates.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Object containing filter conditions |
Example request
GET /api/email_template/list?list_offset=0
X-API-KEY: {your_api_key}
/api/email_template/save
Create or update an email template. For a new template use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new template, >0 = update | |
company_user_id | int | Identifier of the employee who owns the template | |
email_template_name | string | Template name (for internal identification) | |
template_subject | string | Email subject line (dynamic tags supported) | |
template_content | string | HTML body (dynamic tags supported) | |
email_template_type_id | int | Template type identifier | |
email_template_cc | string | CC email address(es) | |
template_enable_item_file_list_table | int | 1 = include attachment list table |
Example request
POST /api/email_template/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_user_id": 3,
"email_template_name": "Számla kiküldő sablon",
"template_subject": "Számla: {identify}",
"template_content": "<p>Kedves {partner_name},</p><p>mellékeljük a számlát.</p>"
}
}
/api/email_template/delete
Delete an email template by its identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the template to delete |
Example request
POST /api/email_template/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 2 } }
Create your account now,
pay later!