Skip to main content
POST
Create Template
Create a reusable email template with exactly one content source: prompt for Sequenzy-generated branded native blocks, blocks for finished caller-supplied content, or html for preserved/imported markup. style and tone are valid only with prompt; subject and preview values may override generated values. Creating a standalone copy of a saved email or gallery design and AI rewriting within that design are currently dashboard-only workflows. This endpoint has no source-template copy operation, and prompt does not preserve an existing layout. See the documented interface exception for the scope and supported alternatives.

Request

string
required
Template name. Sequenzy stores API-created templates with a [Template] prefix.
string
Email subject line. Required with html or blocks; optional with prompt, where it overrides the generated subject.
string | null
Optional inbox preview override. With prompt, the generated preview is used when this field is omitted.
string
Natural-language request for Sequenzy to generate branded native template blocks. Use this instead of html or blocks.
string
Optional generation style. Valid only with prompt. Pass designed or plain to force the designed or plain-text email style; other values are freeform prompt guidance. Defaults to your company’s email style preference (designed unless you chose plain text).
string
Optional generation tone. Valid only with prompt.
string
Raw HTML body. Use this or blocks, not both.
array
Sequenzy email blocks. Use this or html, not both. Put block styling under styles; top-level style keys like backgroundColor, backgroundOpacity, textColor, textAlign, borderColor, borderWidth, and borderRadius are normalized into styles.
array
Label names to assign to the template. Missing labels are created automatically. The API also accepts label as a compatibility alias.
boolean
default:"false"
Save as a reusable master design. Master designs are offered first when a dashboard sequence step or campaign starts from an existing email, and starting from one always creates an independent copy.

Responses