Skip to main content
GET
/
api
/
v1
/
campaigns
/
{campaign_id}
/
leads-export
curl "https://server.smartlead.ai/api/v1/campaigns/123/leads-export?api_key=YOUR_KEY" \
  --output campaign_leads.csv
email,first_name,last_name,company_name,phone_number,status,category,created_at
john@company.com,John,Doe,ACME Corp,+1-555-0100,INPROGRESS,Interested,2025-01-15T10:00:00Z
jane@startup.io,Jane,Smith,Startup Inc,,COMPLETED,Meeting Request,2025-01-10T09:00:00Z
Download all leads from a campaign in CSV format. Essential for reporting, backup, and external analysis.

Path Parameters

campaign_id
number
required
Campaign ID

Query Parameters

api_key
string
required
Your SmartLead API key
curl "https://server.smartlead.ai/api/v1/campaigns/123/leads-export?api_key=YOUR_KEY" \
  --output campaign_leads.csv

Response Example

email,first_name,last_name,company_name,phone_number,status,category,created_at
john@company.com,John,Doe,ACME Corp,+1-555-0100,INPROGRESS,Interested,2025-01-15T10:00:00Z
jane@startup.io,Jane,Smith,Startup Inc,,COMPLETED,Meeting Request,2025-01-10T09:00:00Z