Skip to main content
POST
Requires your own API key. Client API keys get 401.Results are ordered by lead map ID (ascending) and paginated with a cursor. To fetch the next page, send the lastSeenEclmId from the previous response as lastSeenLeadId.

Path Parameters

number
required
Campaign ID

Query Parameters

string
required
Your SmartLead API key

Request Body

All fields are optional.
string
Text search on the lead’s email, first name and last name. The text is split on spaces, and every word must match (case-insensitive, partial match) at least one of those fields. For example, "Doe John" matches first name John and last name Doe.
number
default:"25"
Number of leads to return (minimum: 1, maximum: 100)
number
Cursor: the lastSeenEclmId from the previous page
string
ISO date. Second half of the cursor, used with lastSeenLeadId when fieldSet is active_table and statusFilter is replied (those results are sorted by latest reply time)
string[]
Lead statuses. Valid values: STARTED, INPROGRESS, COMPLETED, STOPPED, PAUSED, BLOCKED
string[]
Email statuses. Valid values: is_opened, is_clicked, is_bounced, is_replied, is_unsubscribed, is_accepted, not_replied, is_sender_bounced, got_reply
number[]
Lead category IDs. Include -1 to also match leads with no category.
boolean
Only leads with no lead category
number[]
Email account IDs the leads are assigned to
number[]
ESP domain types (integers 0–2)
number[]
Segment types (integers 0–10)
number[]
Sequence step numbers (1–999)
number[]
Sequence IDs
number[]
Sequence variant IDs
string
MANUAL or AUTO
string
Status tab, matching the keys returned by GET /campaigns/{campaign_id}/lead-status-summary: all, active, replied, failed, scheduled, manual_followups, completed, paused
string
default:"drafted_table"
Fields returned per lead: drafted_table (compact) or active_table (full, including category, stats and mappingExists)
string[]
Email addresses (max 320 characters each)
boolean
Filter leads for manual completion
number[]
Manual sequence IDs, used with filterLeadsForManualCompletion
boolean
Include sender-bounced leads

Response

array
Matching leads. With fieldSet: "drafted_table" each item has id (lead map ID), current_seq_num, status, email_account_id, spintax_modulo_index, email_lead (id, email, first_name, last_name, company_name, phone_number, company_url, website, linkedin_profile, location, custom_fields, esp_domain_type) and email_account (username, or null).With fieldSet: "active_table" each item also has next_timestamp_to_reach, last_sent_time, latest_reply_time, email_campaign_seq_id, lead_category_id, lead_category (id, name, or null), latest_email_stats, latest_reply_stats, matched_status_stats. email_lead also includes seg_type, and email_account also includes mappingExists: the list of { id } mappings of that email account to this campaign (empty when the account is no longer attached to the campaign).
number
Lead map ID of the last lead in leads. Pass it as lastSeenLeadId for the next page.
string
latest_reply_time of the last lead (only set with active_table)
number
Total number of leads matching the filters