Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

At least one of html, mjml or text must be supplied. Supplying both html and mjml in the same request is rejected - mjml content will be rendered to html. Providing raw html will override any mjml content stored on the template.

name
string
required

Maximum 64 characters.

subject
string
required

Maximum 256 characters.

html
string

Maximum 500,000 characters.

mjml
string

Maximum 500,000 characters. The html it compiles to must also be within the html limit.

text
string

Maximum 100,000 characters.

channelIds
string<uuid>[]

Response

OK

id
string<uuid>
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
version
integer<int64>
required

Opaque version, changing on every update. Pass it back as the version of an update to have the update rejected if the template has been modified in the meantime.

name
string
required
subject
string
required
html
string
mjml
string
text
string
channelIds
string<uuid>[]