Lead Management
Export Campaign Leads
Export all leads from a campaign as a CSV file with complete engagement metrics
GET
Returns a CSV file containing all leads in the campaign with their contact information, status, category, and engagement metrics (opens, clicks, replies). The file is named
sl_campaign_{campaign_id}_leads.csv.Path Parameters
The campaign ID to export leads from
Query Parameters
Your SmartLead API key
CSV File Columns
The exported CSV file contains the following columns:Lead Information
Lead Information
id- Lead IDcampaign_lead_map_id- Campaign-lead mapping IDfirst_name- Lead’s first namelast_name- Lead’s last nameemail- Lead’s email addressphone_number- Lead’s phone numbercompany_name- Company namewebsite- Company websitelocation- Lead’s locationlinkedin_profile- LinkedIn profile URLcompany_url- Company URLcustom_fields- Custom fields as JSON object
Status & Category
Status & Category
status- Lead status (STARTED, INPROGRESS, COMPLETED, PAUSED, STOPPED)category- Category nameis_interested- Boolean indicating positive sentiment categorycreated_at- When lead was added to campaign
Engagement Metrics
Engagement Metrics
last_email_sequence_sent- Last sequence number sentopen_count- Total number of opensclick_count- Total number of clicksreply_count- Total number of replies
Unsubscribe Status
Unsubscribe Status
is_unsubscribed- Whether lead is globally unsubscribedunsubscribed_client_id_map- Client-specific unsubscribe data
Response Codes
CSV file generated and returned successfully
Invalid or missing API key
Campaign not found or you don’t have access to it
Server error occurred
Response Headers
The response includes the following headers:
Content-Type: text/csvContent-Disposition: attachment; filename=sl_campaign_{campaign_id}_leads.csv
Usage Notes
Related Endpoints
- Get Campaign Leads - Paginated API access to leads
- Get Lead by Email - Get individual lead details
- Get All Leads Activities - Activity timeline for all leads
