Email Template¶
A prepared email message that can be used to bootstrap a campaign or transactional email.
Endpoints¶
| Method | URL |
|---|---|
GET |
/email_template/<template> |
POST |
/email_template |
PUT |
/email_template/<template> |
DELETE |
/email_template/<template> |
GET /email_template/<template>¶
Payload: No payload.
Returns: The template.
POST /email_template¶
| Parameter | Type | Description |
|---|---|---|
name |
string | Template name |
message |
string | Message HTML code |
block_editor_type |
string | "" (no editor) or "unlayer" |
block_editor_content |
string (optional) | JSON string with message source for the block editor |
shared_with_children |
boolean | Allow hierarchical child users to use this template |
Returns: The new template.
PUT /email_template/<template>¶
Same payload as POST.
Returns: The edited template.
DELETE /email_template/<template>¶
Payload: No payload.
Returns: The deleted template.