Templates

Create template

Create a new email template.

from is required and its domain must already be verified for this project, otherwise the request is rejected.

post/templates

Request body

namestring required

Internal name for the template.

descriptionstring

Optional internal note. Not sent to recipients.

subjectstring required
bodystring required

HTML body. Use {{variable}} placeholders to interpolate contact data at send time.

fromstring email required

Sender address. Must belong to a domain verified for this project.

fromNamestring

Sender display name.

replyTostring email
type'TRANSACTIONAL' | 'MARKETING' | 'HEADLESS'

Optional. Defaults to MARKETING when omitted.

Response

Template created

idstring
namestring
descriptionstring nullable
subjectstring
bodystring

HTML content with {{variable}} placeholders.

fromstring email

Sender address. Must belong to a verified domain.

fromNamestring nullable
replyTostring email nullable
type'TRANSACTIONAL' | 'MARKETING' | 'HEADLESS'
projectIdstring
createdAtstring date-time
updatedAtstring date-time

Changes