Skip to main content
POST
/
api
/
v1
/
generate
/
sequence
Generate Sequence
curl --request POST \
  --url https://api.sequenzy.com/api/v1/generate/sequence \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "goal": "<string>",
  "emailCount": 123,
  "durationDays": 123
}
'
{
  "success": true,
  "goal": "Onboard a new workspace admin",
  "emails": [
    {
      "subject": "Welcome to your workspace",
      "previewText": "Start with one quick setup step",
      "html": "<!DOCTYPE html>...",
      "delayDays": 0
    }
  ]
}

Generate Sequence

Generates draft HTML emails for a sequence goal. This does not create or enable a sequence; use the create sequence endpoint when you want to persist it.

Request

goal
string
required
The sequence goal or desired subscriber journey.
emailCount
number
Number of emails to generate. Defaults to 5. Maximum is 10.
durationDays
number
Duration used to space suggested delays. Defaults to 14.
curl -X POST "https://api.sequenzy.com/api/v1/generate/sequence" \
  -H "Authorization: Bearer seq_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "goal": "Onboard a new workspace admin",
    "emailCount": 3,
    "durationDays": 7
  }'

Responses

{
  "success": true,
  "goal": "Onboard a new workspace admin",
  "emails": [
    {
      "subject": "Welcome to your workspace",
      "previewText": "Start with one quick setup step",
      "html": "<!DOCTYPE html>...",
      "delayDays": 0
    }
  ]
}