Skip to main content
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 returns null.

Authentication

This endpoint requires a valid JWT token in the x-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, or null 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