POST
cURL
Creates a template from plain text (body), an editor document (content) or a ready-made design in the team’s brand (starterId): give exactly one of them. In body, a blank line starts a paragraph and {{firstName}} or {{firstName,fallback=there}} is filled in when sending.
Needs an API key with full access. Not available to a key limited to one domain.

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
Required string length: 1 - 200
subject
string
required
Required string length: 1 - 500
starterId
enum<string>

A ready-made design in the team's brand

Available options:
newsletter,
announcement,
welcome,
event-invitation,
we-miss-you,
letter,
order-confirmation,
password-reset,
one-time-code
body
string

Plain text. A blank line starts a new paragraph. {{firstName}} or {{firstName,fallback=there}} is filled in when sending. Give body or content.

Maximum string length: 100000
content
object

An email editor document (as GET returns it), for formatting body can't express. Give body or content.

Response

The new template

id
string
required
name
string
required
subject
string
required
createdAt
string
required
updatedAt
string
required