Campaign Consumption
Per-campaign calls, talk time and cost across the whole company. Campaigns with no calls in the selected window are still returned, at zero.
API Endpoint
GET/api/v1/global/campaign-consumption
Base URL: https://www.tryunleashx.com
Authentication: Required (Token header: token or api_access_token)
Query Parameters
All parameters are optional.Date Range Filters
filter nor a valid fromDate / toDate pair is supplied, the range
falls back to today. An unparseable custom range also falls back to today
rather than returning an error.Success Response
Status Code:200 OK
Response Fields
Consumption Object
Totals Object
Grand totals across every matching campaign, not just the current page — so page 2 reports the same totals as page 1.Date Range Object
Pagination Object
Notes
- Campaigns with no calls are still returned, at zero. The date range filters the calls, not the campaigns, so a campaign that was idle in the window appears with
total_calls: 0instead of disappearing from the report. - Results are ordered by
total_costdescending, then by campaign ID descending. - Cost comes from the actual charged call cost, not an estimate.
- Filtering is always restricted to the token’s company, so a
workspace_idfrom another company returns no records. Use List Workspaces to look up valid ids.
Example cURL
Monthly consumption for one campaign in one workspace
All campaigns across the company for the last 7 days
Custom date range across two workspaces
Related Operations
- List Campaigns — campaign metadata and progress
- Campaign Details — full configuration of one campaign
- List Workspaces — look up
workspace_idvalues
Headers
API token for authentication
Query Parameters
Restrict to one or more workspaces. Accepts a single id, a comma-separated list, or a JSON array. Always restricted to the token's company.
Restrict to one or more campaigns. Accepts a single id, a comma-separated list, or a JSON array.
Date-range shorthand applied to the calls. Defaults to today when neither filter nor fromDate/toDate is supplied.
today, yesterday, week, last_week, month, last_month, last_7_days Custom range start (YYYY-MM-DD). Used only when filter is omitted; must be sent together with toDate.
Custom range end (YYYY-MM-DD). Used only when filter is omitted; must be sent together with fromDate.
Page number (default: 1)
Records per page (default: 10)

