Skip to main content
POST
Create email template

Authorizations

Authorization
string
header
required

Organization API key, sent as Authorization: Bearer boom_org_....

Body

application/json
name
string
required

Internal name, not shown to recipients.

Minimum string length: 1
subject
string
required

Subject line; may contain {{path}} variables.

Minimum string length: 1
document
object

Block-builder content. Send exactly one of document or html.

html
string

Hand-written HTML (the template becomes an HTML template). Sanitized on save — scripts, event handlers and external stylesheets are removed and listed in removed. Variables use the same {{path}} grammar.

Minimum string length: 1
fromSenderId
string | null

Sender id to send From. Must be on the verified domain (usableAsFrom in journeys_email_templates). Null/omitted = the org default.

replyToSenderId
string | null

Sender id for Reply-To. Null/omitted = the org default.

Response

Success

template
object
required
removed
string[]
required

What the HTML sanitizer removed. Empty for block content.