The Campaign Lead List API retrieves a comprehensive list of leads linked to a particular campaign. This enables easy access to lead data for analysis, reporting, or follow-up tasks, ensuring campaign data is organized and accessible.
| Segment | Description |
|---|---|
{org-id} | Your organization (advertiser) unique ID |
{cid} | The campaign unique ID |
Authorization header:
| Parameter | Type | Required | Description |
|---|---|---|---|
org-id | string | Yes | Organization unique ID |
cid | string | Yes | Campaign unique ID |
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number (default: 1) |
limit | integer | No | Records per page (default: 10, max: 100) |
sort | string | No | Sort field (e.g. createdAt) |
order | string | No | Sort direction: asc or desc (default: desc) |
search | string | No | Filter by email, mobile, or name |
from | string | No | Start date filter (ISO 8601: YYYY-MM-DD) |
to | string | No | End date filter (ISO 8601: YYYY-MM-DD) |
leadStatus | string | No | Filter by status: accepted, unsold, rejected, duplicate |
pid | string | No | Filter by source unique ID |
| HTTP Code | Description |
|---|---|
| 200 | Lead list returned successfully |
| 400 | Invalid campaign ID, org ID, or query parameters |
| 401 | Invalid or missing API token |
| 500 | Internal server error |
page and limit parameters when working with large campaigns to avoid timeouts. Start at page 1 and increment until you reach all records (totalRecord / limit pages).from and to together to pull leads for a specific reporting window. Both accept YYYY-MM-DD format and filter on the lead’s creation timestamp in UTC.pid parameter to pull leads from a single source within a campaign — useful when comparing source performance.leadStatus=accepted with date filters for accurate sold-lead counts without pulling rejected or duplicate records.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Selected page number default 1
No of leads in the page, default: 10, min:10, max:100
Sort the list of leads based on field default _id
Sort order of list based on sort field default: descending, valid values are desc , asc
For date filter anyone of these combination is rquired ["dateRange","singleDayDate","startDate and endDate"] from below list
Valid date range format YYYY-MM-DD - YYYY-MM-DD
Valid startDate format YYYY-MM-DD
Valid endDate format YYYY-MM-DD
Valid singleDayDate format YYYY-MM-DD