List Campaigns (Analytics)
Analytics API
List Campaigns (Analytics)
Get a paginated list of campaigns with analytics metrics
GET
List Campaigns (Analytics)
Overview
The list campaigns endpoint returns a paginated list of campaigns with aggregated analytics (messages, cost, revenue, orders, conversion rate, ROAS, open rate) within an optional date range. Results can be filtered by type. Results are ordered by campaign creation date (newest first).Authentication
This endpoint requires a valid JWT token in thex-auth-token header. You can find your token in the Developers section:
Query Parameters
string
Start date for filtering results (ISO 8601). Defaults to 2022-01-01 if omitted.
string
End date for filtering results (ISO 8601). Defaults to now if omitted.
string
Type of assets:
campaigns or outbound-automations. When outbound-automations, includes flows and outbound automations.string
required
Page number (0-based). Use 0 for the first page.
string
required
Number of items per page. Must be at least 1.
Response
The response has two top-level keys:data (array of campaign analytics) and pagination.
Each item in data includes:
string
Campaign (or asset) ID
object
Campaign document (name, createdAt, etc.)
number
Total messages sent for this campaign in the date range
number
Total cost in cents
number
Attributed revenue
number
Number of attributed orders
number
Conversion rate (orders / messages) as a percentage
number
Average order value (revenue / orders)
number
Return on ad spend (revenue / cost)
number
Open rate (read / delivered+read) as a percentage
string
Asset type:
campaigns or outbound-automationsnumber
Number of unique conversations
total (total count), perPage, page.