Templates
Create and manage reusable HTML email templates.
Templates are reusable HTML email layouts. Reference a template by ID when sending transactional email or creating a campaign and optionally pass templateData variables.
Template object
{
"id": "tpl_01HV...",
"name": "Welcome email",
"subject": "Welcome to {{appName}}",
"createdAt": "2026-01-10T08:00:00Z",
"updatedAt": "2026-03-15T12:00:00Z"
}Templates support {{variable}} syntax in both subject and body.
List templates
Create a template
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Internal template name |
subject | string | Yes | Subject line — supports {{variable}} |
body | string | Yes | HTML body — supports {{variable}} |
Get a template
Returns the full template including the HTML body.
Update a template
Delete a template
Returns 204 No Content. Does not affect already-sent emails.
Using a template
Pass templateId and templateData in a send request:
{
"to": "jane@example.com",
"from": "hello@yourdomain.com",
"templateId": "tpl_01HV...",
"templateData": {
"appName": "Acme",
"firstName": "Jane"
}
}
