Templates
Create Template
Create a new email template with HTML content and design settings using the AutoSend API.
POST
Authorizations
Bearer authentication header of the form Bearer
<token>, where <token> is your auth token.Body
Template data for creating a new email templateName of the template (max 90 characters).Maximum length:
90Example: "Welcome Email"Email subject line (max 988 characters). Supports Handlebars template variables.Maximum length:
988Example: "Welcome to {{companyName}}, {{firstName}}!"Short description of the template (max 140 characters).Maximum length:
140Example: "Welcome email for new users"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"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: Provide the values for these variables in the
{{variableName}}.Example:dynamicData field when sending emails using this template.Type of the template.Allowed values:
transactional, marketingDefault: "transactional"Example: "transactional"Builder type used to create the template.Allowed values:
code, visualDefault: "code"Example: "code"Dynamic variables configuration for the template.Example:
ID of the sender to associate with this template. The sender must belong to the same project.Example:
"60d5ec49f1b2c72d9c8b4567"Response
Template created successfullyIndicates if the request was successfulExample:
trueThe created template object