Skip to main content
GET
Returns the leads in one lead list, so you can check what an import added before you push the list to a campaign. Same rows, paging and body as GET /api/v1/leads/all?listId={id}, plus a 404 when the list is not yours. For the counts only, use Get Lead List Stats.
Lead lists belong to the main account, so a client API key owns none: with a client key this endpoint returns 404 Lead list not found. Use the main account’s API key.

Path Parameters

integer
required
The lead list ID (a positive integer)

Query Parameters

string
required
Your SmartLead API key
integer
default:"100"
Leads per page, 1 to 1000
integer
Paging cursor: the lastSeenLeadId of the previous page. Leave it out for the first page. Leads come newest first (highest id first).
string
true or false. Same meaning as on GET /api/v1/leads/all.
Any other query parameter is rejected with a 400. To search or filter inside a list, use GET /api/v1/leads/all?listId={id} with its filters.

Response Fields

array
The leads on this page: every column of the lead, plus email_campaign_leads_mappings_count (how many of your campaigns the lead is active or inactive in) and category_ids. id is the lead ID, returned as a string (a 64-bit database ID).
string
The id of the last lead on this page; send it as lastSeenLeadId to get the next page. Absent when the page is empty.
integer
Total leads in the list (all pages)

Response Codes

Success
Request successful
Bad Request
A parameter has the wrong type or is out of range, or an unknown query parameter
Unauthorized
Invalid or missing API key
Not Found
No lead list with this ID in your account, or a client API key
Internal Server Error
Server error; retry the request