curl -X POST "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences?api_key=YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "sequences": [ { "id": null, "seq_number": 1, "subject": "Hello {{first_name}}", "email_body": "<p>Hi {{first_name}},</p><p>I wanted to reach out...</p>", "seq_delay_details": { "delay_in_days": 0 } }, { "id": null, "seq_number": 2, "subject": "", "email_body": "<p>Just following up on my previous email...</p>", "seq_delay_details": { "delay_in_days": 3 } } ] }'
{ "ok": true, "data": [ { "id": 1001, "seq_number": 1, "subject": "Hello {{first_name}}", "email_body": "<p>Hi {{first_name}},</p><p>I wanted to reach out...</p>" }, { "id": 1002, "seq_number": 2, "subject": "Re: Hello {{first_name}}", "email_body": "<p>Just following up on my previous email...</p>" } ]}
Campaign Management
Update Campaign Sequences
Create or update email sequences for multi-step campaigns
POST
/
api
/
v1
/
campaigns
/
{campaign_id}
/
sequences
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences?api_key=YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "sequences": [ { "id": null, "seq_number": 1, "subject": "Hello {{first_name}}", "email_body": "<p>Hi {{first_name}},</p><p>I wanted to reach out...</p>", "seq_delay_details": { "delay_in_days": 0 } }, { "id": null, "seq_number": 2, "subject": "", "email_body": "<p>Just following up on my previous email...</p>", "seq_delay_details": { "delay_in_days": 3 } } ] }'
{ "ok": true, "data": [ { "id": 1001, "seq_number": 1, "subject": "Hello {{first_name}}", "email_body": "<p>Hi {{first_name}},</p><p>I wanted to reach out...</p>" }, { "id": 1002, "seq_number": 2, "subject": "Re: Hello {{first_name}}", "email_body": "<p>Just following up on my previous email...</p>" } ]}
Creates new sequences (id: null) or updates existing ones. Each sequence needs: seq_number, email_body, and delay in days. Cannot modify while campaign is ACTIVE - pause first.