Skip to main content
POST
/
api
/
v1
/
generate
/
email
Generate Email
curl --request POST \
  --url https://api.sequenzy.com/api/v1/generate/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "style": "<string>",
  "tone": "<string>"
}
'
{
  "success": true,
  "subject": "Meet your new analytics dashboard",
  "previewText": "A clearer way to track what matters",
  "blocks": [
    {
      "id": "block-1",
      "type": "heading",
      "level": 1,
      "content": "Meet your new analytics dashboard"
    }
  ],
  "message": "Created a draft email."
}

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.

Generate Email

Generates a draft marketing email using the same AI writer flow as the editor chat. Review the returned blocks before creating or sending a campaign.

Request

prompt
string
required
What you want the email to say or accomplish.
style
string
Optional style guidance, such as minimal, branded, or promotional.
tone
string
Optional tone guidance, such as professional, casual, or friendly.
curl -X POST "https://api.sequenzy.com/api/v1/generate/email" \
  -H "Authorization: Bearer seq_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Announce our new analytics dashboard to trial users",
    "style": "branded",
    "tone": "friendly"
  }'

Responses

{
  "success": true,
  "subject": "Meet your new analytics dashboard",
  "previewText": "A clearer way to track what matters",
  "blocks": [
    {
      "id": "block-1",
      "type": "heading",
      "level": 1,
      "content": "Meet your new analytics dashboard"
    }
  ],
  "message": "Created a draft email."
}