Create a new email template with HTML or Topol editor JSON content. Automatically creates and publishes a template version with extracted merge tags.
html for raw HTML templates or json for visual editor (Topol) templates — these fields are mutually exclusive.
The template is automatically assigned a URL-friendly slug based on its name. You can optionally assign it to a specific project and folder using project_id and folder_id. If omitted, the template is added to your team’s default project.API key for authentication
Request to create a new email template. Provide either html for custom HTML templates or json for Topol visual editor templates.
Name of the template
255"Welcome Email"
Project ID to create the template in. If not provided, uses the team's default project.
x >= 15
Folder ID to create the template in. If not provided, uses the first folder in the project.
x >= 110
HTML content for custom HTML templates. Required if json is not provided. Mutually exclusive with json.
"<html><body><p>Hello {{NAME}}!</p></body></html>"
JSON content for Topol visual editor templates. Required if html is not provided. Mutually exclusive with html.
"{\"tagName\":\"mj-container\",\"children\":[{\"tagName\":\"mj-text\",\"content\":\"Hello {{FIRST_NAME}}!\"}]}"