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",
  "html": "<!DOCTYPE html>...",
  "blocks": [],
  "message": "Created a draft email."
}

Generate Email

Generates a draft marketing email using the same AI writer flow as the editor chat. Review the returned HTML before sending.

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",
  "html": "<!DOCTYPE html>...",
  "blocks": [],
  "message": "Created a draft email."
}