Skip to main content
POST

Authorizations

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

Body

Template data for creating a new email template
string
required
Name of the template (max 90 characters).Maximum length: 90Example: "Welcome Email"
string
required
Email subject line (max 988 characters). Supports Handlebars template variables.Maximum length: 988Example: "Welcome to {{companyName}}, {{firstName}}!"
string
Short description of the template (max 140 characters).Maximum length: 140Example: "Welcome email for new users"
string
Email preview text / preheader (max 140 characters). This text is shown in email clients before the email is opened.Maximum length: 140Example: "We are glad to have you on board"
string
HTML content of the email template. Supports Handlebars syntax for dynamic variables.Handlebars Template Variables:Use Handlebars syntax for template variables in your HTML. Variables are wrapped in double curly braces: {{variableName}}.Example:
Provide the values for these variables in the dynamicData field when sending emails using this template.
string
Type of the template.Allowed values: transactional, marketingDefault: "transactional"Example: "transactional"
string
Builder type used to create the template.Allowed values: code, visualDefault: "code"Example: "code"
object
Dynamic variables configuration for the template.Example:
string
ID of the sender to associate with this template. The sender must belong to the same project.Example: "60d5ec49f1b2c72d9c8b4567"

Response

Template created successfully
boolean
Indicates if the request was successfulExample: true
object
The created template object