List campaign cost expenses
Returns per-country expense rows from immutable completion snapshots of completed template campaigns.
- Each row reports
campaignId,campaignName,channelId,completedAt,countryCode,category, and final estimatedtotalinUSD,BRL, andRUB. - Optional query filters
channelId,from,to(snapshotcompletedAtrange), andcampaignIdscombine withAND.
These amounts are estimates. Volume tiers, free entry points, customer-service windows, and Meta from-to price bands are not modeled, so the figures can differ from Meta's invoice.
bearerAuthorizationBearer <API key>Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.
channelId?stringLimit to one channel. Combined with the other filters using AND.
from?stringInclude snapshots whose completedAt is at or after this instant. Filters campaign_cost_snapshots.completedAt.
date-timeto?stringInclude snapshots whose completedAt is at or before this instant. Filters campaign_cost_snapshots.completedAt.
date-timecampaignIds?array<string>Campaign ids. Repeat the parameter or pass a comma-separated list. Combined with the other filters using AND.
format?stringAccepted for compatibility. GET .../cost/expenses returns JSON. GET .../cost/expenses.csv always returns CSV.
"json""csv"application/json- response
rows*array<>curl -X GET 'https://api.1msg.io/api/v1/campaigns/cost/expenses'{ "rows": [ { "campaignId": "string", "campaignName": {}, "channelId": "string", "completedAt": "2019-08-24T14:15:22Z", "countryCode": "BR", "category": "MARKETING", "total": { "usd": "0.0604", "brl": "0.3109", "rub": "4.9404" } } ]}