curl "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences",
params={"api_key": API_KEY}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://server.smartlead.ai/api/v1/campaigns/${campaign_id}/sequences?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
{
"success": true,
"data": [
{
"id": 1001,
"created_at": "2026-02-10T10:30:00Z",
"updated_at": "2026-02-10T10:30:00Z",
"email_campaign_id": 123,
"seq_number": 1,
"subject": "Quick question about {{company_name}}",
"follow_up_subject": null,
"email_body": "<p>Hi {{first_name}},</p><p>I noticed {{company_name}} is doing some interesting work...</p>",
"sequence_variants": [
{
"id": 5001,
"variant_name": "Variant A",
"subject": "Quick question about {{company_name}}",
"email_body": "<p>Hi {{first_name}},</p><p>I noticed {{company_name}} is doing some interesting work...</p>"
}
]
},
{
"id": 1002,
"created_at": "2026-02-10T10:30:00Z",
"updated_at": "2026-02-10T10:30:00Z",
"email_campaign_id": 123,
"seq_number": 2,
"subject": "",
"follow_up_subject": "Quick question about {{company_name}}",
"email_body": "<p>Following up on my previous email...</p>",
"sequence_variants": [
{
"id": 5002,
"variant_name": "Variant A",
"subject": "",
"email_body": "<p>Following up on my previous email...</p>"
}
]
}
]
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Campaign Management
Get Campaign Sequences
Retrieves all email sequences configured for a campaign, ordered by sequence number.
GET
/
api
/
v1
/
campaigns
/
{campaign_id}
/
sequences
curl "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences",
params={"api_key": API_KEY}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://server.smartlead.ai/api/v1/campaigns/${campaign_id}/sequences?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
{
"success": true,
"data": [
{
"id": 1001,
"created_at": "2026-02-10T10:30:00Z",
"updated_at": "2026-02-10T10:30:00Z",
"email_campaign_id": 123,
"seq_number": 1,
"subject": "Quick question about {{company_name}}",
"follow_up_subject": null,
"email_body": "<p>Hi {{first_name}},</p><p>I noticed {{company_name}} is doing some interesting work...</p>",
"sequence_variants": [
{
"id": 5001,
"variant_name": "Variant A",
"subject": "Quick question about {{company_name}}",
"email_body": "<p>Hi {{first_name}},</p><p>I noticed {{company_name}} is doing some interesting work...</p>"
}
]
},
{
"id": 1002,
"created_at": "2026-02-10T10:30:00Z",
"updated_at": "2026-02-10T10:30:00Z",
"email_campaign_id": 123,
"seq_number": 2,
"subject": "",
"follow_up_subject": "Quick question about {{company_name}}",
"email_body": "<p>Following up on my previous email...</p>",
"sequence_variants": [
{
"id": 5002,
"variant_name": "Variant A",
"subject": "",
"email_body": "<p>Following up on my previous email...</p>"
}
]
}
]
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Retrieves all email sequences configured for a campaign, ordered by sequence number Essential for sequence editors, email preview interfaces, A/B testing configuration, and understanding campaign flow
Overview
Retrieves all email sequences configured for a campaign, ordered by sequence number Key Features:- Returns complete sequence data including subject lines, email bodies (HTML/plain text), delay configurations, and A/B test variants if configured
- Shows delayInDays for each sequence indicating spacing between emails
Includes sequence IDs required for updates
Path Parameters
Query Parameters
curl "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences",
params={"api_key": API_KEY}
)
result = response.json()
print(result)
const API_KEY = 'YOUR_API_KEY';
const response = await fetch(
`https://server.smartlead.ai/api/v1/campaigns/${campaign_id}/sequences?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
Response Codes
The requested resource (campaign, lead, email account, etc.) does not exist or you don’t have access to it
Request validation failed. Check parameter types, required fields, and value constraints.
Server error occurred. Please try again or contact support if the issue persists.
{
"success": true,
"data": [
{
"id": 1001,
"created_at": "2026-02-10T10:30:00Z",
"updated_at": "2026-02-10T10:30:00Z",
"email_campaign_id": 123,
"seq_number": 1,
"subject": "Quick question about {{company_name}}",
"follow_up_subject": null,
"email_body": "<p>Hi {{first_name}},</p><p>I noticed {{company_name}} is doing some interesting work...</p>",
"sequence_variants": [
{
"id": 5001,
"variant_name": "Variant A",
"subject": "Quick question about {{company_name}}",
"email_body": "<p>Hi {{first_name}},</p><p>I noticed {{company_name}} is doing some interesting work...</p>"
}
]
},
{
"id": 1002,
"created_at": "2026-02-10T10:30:00Z",
"updated_at": "2026-02-10T10:30:00Z",
"email_campaign_id": 123,
"seq_number": 2,
"subject": "",
"follow_up_subject": "Quick question about {{company_name}}",
"email_body": "<p>Following up on my previous email...</p>",
"sequence_variants": [
{
"id": 5002,
"variant_name": "Variant A",
"subject": "",
"email_body": "<p>Following up on my previous email...</p>"
}
]
}
]
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Response Fields
The subject a follow-up step actually sends with. When a step has no
subject of its own (it replies in the same thread), this holds the subject inherited from the most recent earlier step that had one. null on steps that set their own subject.