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.

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
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.
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, 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.

Responses