Download campaign cost expenses as CSV
Exports the full filtered campaign cost expense report as a UTF-8 CSV attachment without pagination.
- Accepts the same
channelId,from,to, andcampaignIdsfilters asGET /api/v1/campaigns/cost/expenses. - Columns:
campaign_id,channel_id,completed_at,country_code,category,total_usd,total_brl,total_rub.
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"CSV file with snake_case columns: campaign_id, channel_id, completed_at, country_code, category, total_usd, total_brl, and total_rub.
curl -X GET 'https://api.1msg.io/api/v1/campaigns/cost/expenses.csv'