curl "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts",
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}/email-accounts?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
{
"ok": true,
"data": [
{
"id": 2001,
"from_email": "sales@mycompany.com",
"from_name": "Sarah Lee",
"type": "SMTP",
"warmup_enabled": true,
"warmup_reputation": "excellent"
},
{
"id": 2002,
"from_email": "outreach@mycompany.com",
"from_name": "David Smith",
"type": "SMTP",
"warmup_enabled": true,
"warmup_reputation": "excellent"
}
]
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Campaign Management
Get Campaign Email Accounts
Retrieves all email accounts (sender accounts) associated with and actively rotating for this specific campaign.
GET
/
api
/
v1
/
campaigns
/
{campaign_id}
/
email-accounts
curl "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts",
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}/email-accounts?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
{
"ok": true,
"data": [
{
"id": 2001,
"from_email": "sales@mycompany.com",
"from_name": "Sarah Lee",
"type": "SMTP",
"warmup_enabled": true,
"warmup_reputation": "excellent"
},
{
"id": 2002,
"from_email": "outreach@mycompany.com",
"from_name": "David Smith",
"type": "SMTP",
"warmup_enabled": true,
"warmup_reputation": "excellent"
}
]
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Retrieves all email accounts (sender accounts) associated with and actively rotating for this specific campaign Essential for monitoring sender distribution, checking account health, and troubleshooting delivery issues.
Overview
Retrieves all email accounts (sender accounts) associated with and actively rotating for this specific campaign Key Features:- Returns account details including from_email, from_name, type (SMTP/GMAIL/OUTLOOK), daily sending limits, warmup status and reputation, connection status (is_smtp_success/is_imap_success), and number of campaigns using each account
- Shows which accounts SmartLead will rotate between when sending campaign emails
Path Parameters
number
required
The campaign ID
Query Parameters
string
required
Your SmartLead API key
boolean
default:"false"
Include email account tags in response
curl "https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts?api_key=YOUR_KEY"
import requests
API_KEY = "YOUR_API_KEY"
response = requests.get(
"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts",
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}/email-accounts?api_key=${API_KEY}`
);
const result = await response.json();
console.log(result);
Response Codes
Success
Request successful
Bad Request
Invalid request parameters or malformed request body
Unauthorized
Invalid or missing API key. Check your authentication.
Not Found
The requested resource (campaign, lead, email account, etc.) does not exist or you don’t have access to it
Validation Error
Request validation failed. Check parameter types, required fields, and value constraints.
Rate Limit Exceeded
Too many requests. Please slow down and retry after the rate limit resets.
Internal Server Error
Server error occurred. Please try again or contact support if the issue persists.
Service Unavailable
API is temporarily unavailable or under maintenance. Please try again later.
{
"ok": true,
"data": [
{
"id": 2001,
"from_email": "sales@mycompany.com",
"from_name": "Sarah Lee",
"type": "SMTP",
"warmup_enabled": true,
"warmup_reputation": "excellent"
},
{
"id": 2002,
"from_email": "outreach@mycompany.com",
"from_name": "David Smith",
"type": "SMTP",
"warmup_enabled": true,
"warmup_reputation": "excellent"
}
]
}
{
"message": "Invalid API Key"
}
{
"error": "Resource not found"
}
{
"error": "Invalid parameters provided"
}
Response Fields
number
Email account ID
string
Sender email address
string
Account type (SMTP, GMAIL, OUTLOOK)
boolean
Whether warmup is active
string
Current warmup reputation score
