Templates
Create template
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required string length:
1 - 200Required string length:
1 - 500A 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 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:
100000An email editor document (as GET returns it), for formatting body can't express. Give body or content.