Get Campaign (Analytics)
Analytics API
Get Campaign (Analytics)
Get analytics metrics for a single campaign
GET
Get Campaign (Analytics)
Overview
The get campaign endpoint returns aggregated analytics (messages, cost, revenue, orders, conversion rate, ROAS) for a single campaign by ID. If the campaign ID is invalid or no message events exist for it, the API returnsnull.
Authentication
This endpoint requires a valid JWT token in thex-auth-token header. You can find your token in the Developers section:
Path Parameters
string
required
The unique identifier of the campaign (MongoDB ObjectId). Supports both classic campaigns and outbound automations/flows.
Response
The response is a single campaign analytics object, ornull if the campaign is not found or has no message events.
string
Campaign (asset) ID
object
Campaign document (name, createdAt, etc.)
number
Total messages sent for this campaign in the default 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)
string
Asset type:
campaigns or outbound-automations