POST /v1/templates
Templates are scoped to a single project (sender). Use {{handlebars}} placeholders anywhere in the subject, HTML, or text — supply their values as data when you render or send.
Body parameters
Human-readable name shown in the dashboard.
Subject line. May contain merge variables.
HTML body. Supports
{{handlebars}} merge variables, {{#if}} / {{#each}} blocks, and filters such as {{name | default: "there"}}.Plain-text body. Recommended alongside
html for clients that don’t render HTML.Stable handle used as
templateId on a send. Lowercase [a-z0-9-], unique per project. Auto-derived from name when omitted.Request
Response
Returns201 Created with the saved template. The variables array lists the merge fields the engine found — a quick way to confirm a placeholder didn’t get mistyped.
201 Created
