Skip to main content
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

number
required
The campaign ID to export leads from

Query Parameters

string
required
Your SmartLead API key

CSV File Columns

The exported CSV file contains the following columns:
  • id - Lead ID
  • campaign_lead_map_id - Campaign-lead mapping ID
  • first_name - Lead’s first name
  • last_name - Lead’s last name
  • email - Lead’s email address
  • phone_number - Lead’s phone number
  • company_name - Company name
  • website - Company website
  • location - Lead’s location
  • linkedin_profile - LinkedIn profile URL
  • company_url - Company URL
  • custom_fields - Custom fields as JSON object
  • status - Lead status (STARTED, INPROGRESS, COMPLETED, PAUSED, STOPPED)
  • category - Category name
  • is_interested - Boolean indicating positive sentiment category
  • created_at - When lead was added to campaign
  • last_email_sequence_sent - Last sequence number sent
  • open_count - Total number of opens
  • click_count - Total number of clicks
  • reply_count - Total number of replies
  • is_unsubscribed - Whether lead is globally unsubscribed
  • unsubscribed_client_id_map - Client-specific unsubscribe data

Response Codes

Success
CSV file generated and returned successfully
Unauthorized
Invalid or missing API key
Not Found
Campaign not found or you don’t have access to it
Internal Server Error
Server error occurred

Response Headers

The response includes the following headers:
  • Content-Type: text/csv
  • Content-Disposition: attachment; filename=sl_campaign_{campaign_id}_leads.csv

Usage Notes

This endpoint is ideal for:
  • Backing up campaign leads
  • Importing leads into CRM systems
  • Analyzing engagement metrics in spreadsheet tools
  • Generating reports for stakeholders
Large campaigns may take longer to export. The export includes all leads regardless of status.