Offer Campaign APIs
Source List API
The Campaign Source Overview API delivers reporting and statistical data for different lead sources within a campaign. This insight allows marketers to evaluate performance, identify top-performing sources, and refine their strategies accordingly.
GET
cURL
Overview
The Source List API returns performance and statistical data for all lead sources attached to a specific offer campaign. Use it to build reporting dashboards, monitor source-level metrics (leads, conversions, revenue), and identify top-performing or underperforming sources in real time.Endpoint
| Segment | Description |
|---|---|
{org-id} | Your organization (advertiser) unique ID |
{cid} | The campaign unique ID |
Authentication
Include your API token in theAuthorization header:
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org-id | string | Yes | Organization unique ID |
cid | string | Yes | Campaign unique ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | No | Start date filter (ISO 8601: YYYY-MM-DD) |
to | string | No | End date filter (ISO 8601: YYYY-MM-DD) |
search | string | No | Search by source name |
page | integer | No | Page number (default: 1) |
limit | integer | No | Records per page (default: 10, max: 100) |
Example Request
Example Response
Error — Campaign Not Found
Error — Unauthorized
Status Codes
| HTTP Code | Description |
|---|---|
| 200 | Source list returned successfully |
| 400 | Invalid campaign ID, org ID, or query parameters |
| 401 | Invalid or missing API token |
| 500 | Internal server error |
Tips
- Date range filtering: Use
fromandtoto scope the stats to a reporting period. All metrics (leads, conversions, revenue) are calculated within the specified window. - Monitoring performance: Poll this endpoint periodically (e.g. every 15 minutes) to refresh a live performance dashboard for your campaign sources.
- Revenue vs payout:
totalRevenueis what buyers paid;totalPayoutis what sources were paid. The difference (margin) represents your campaign’s gross profit for that source. - Inactive sources: Sources with
status: "inactive"are included in the response for historical reference but are not currently receiving leads.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Valid date format YYYY-MM-DD
cURL