Skip to main content
POST
Create Email

Create Email

You can create an email template with either raw HTML or structured blocks. Raw HTML is stored as a native HTML body.

Request

string
required
Email name.
string
required
Email subject line.
string
Optional inbox preview text.
string
Raw HTML body. Provide either html or blocks, not both.
array
Structured email blocks. Provide either blocks or html, not both. Put block styling under styles; top-level style keys like backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles.

Responses