Skip to main content
POST
/
api
/
v1
/
emails
Create Email
curl --request POST \
  --url https://api.sequenzy.com/api/v1/emails \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "subject": "<string>",
  "previewText": "<string>",
  "html": "<string>",
  "blocks": [
    {}
  ]
}
'
{
  "success": true,
  "email": {
    "id": "email_123",
    "companyId": "company_123",
    "name": "Welcome",
    "subject": "Welcome",
    "previewText": null,
    "blocks": [{ "id": "block_123", "type": "text", "variant": "html", "content": "<h1>Hello</h1>" }],
    "createdAt": "2026-04-19T12:00:00.000Z",
    "updatedAt": "2026-04-19T12:00:00.000Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt

Use this file to discover all available pages before exploring further.

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

name
string
required
Email name.
subject
string
required
Email subject line.
previewText
string
Optional inbox preview text.
html
string
Raw HTML body. Provide either html or blocks, not both.
blocks
array
Structured email blocks. Provide either blocks or html, not both.
curl -X POST "https://api.sequenzy.com/api/v1/emails" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Welcome","subject":"Welcome","html":"<h1>Hello</h1>"}'

Responses

{
  "success": true,
  "email": {
    "id": "email_123",
    "companyId": "company_123",
    "name": "Welcome",
    "subject": "Welcome",
    "previewText": null,
    "blocks": [{ "id": "block_123", "type": "text", "variant": "html", "content": "<h1>Hello</h1>" }],
    "createdAt": "2026-04-19T12:00:00.000Z",
    "updatedAt": "2026-04-19T12:00:00.000Z"
  }
}