Create an email template with block content.
cURL
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" } }
html
blocks
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>"}'