ReferenceCampaigns API
Forecast campaign cost
GET
Estimates campaign cost by pricing every audience recipient as delivered against the active WhatsApp list-rate card and approved template category.
- Returns
billingRoute(DIRECT_METAfor own WABA / BYOW, orPLATFORM_1MSGfor a 1msg platform channel), overalltotal, and per-countrybreakdown[].lineTotalinUSD,BRL, andRUB. - Requires an assigned
segmentIdwhen forecasting adraftcampaign before recipient materialization. - Returns
422witherrorCode:CAMPAIGN_COST_RATE_CARD_MISSING,CAMPAIGN_COST_RATE_ROW_MISSING,CAMPAIGN_COST_TEMPLATE_CATEGORY_INVALID(for non-list-rate categories such asMARKETING_LITEorSERVICE),CAMPAIGN_COST_TEMPLATE_MISSING, orCAMPAIGN_COST_BILLING_ROUTE_UNKNOWN.
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.
bearerheader
AuthorizationBearer <API key>Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.
campaignId*stringCampaign id returned by create or list.
application/json- response
campaignId*stringrateCardVersionId*stringActive whatsapp_list_rate_versions id used for this estimate.
templateCategory*stringValue in
"MARKETING""UTILITY""AUTHENTICATION"billingRoute*stringChannel billing route: DIRECT_META (own WABA / BYOW) or PLATFORM_1MSG (1msg platform channel).
Value in
"DIRECT_META""PLATFORM_1MSG"total*Final estimated campaign cost in USD, BRL, and RUB.
breakdown*array<>curl -X GET 'https://api.1msg.io/api/v1/campaigns/string/cost/forecast'Example Response
{ "campaignId": "cm3campaign01", "rateCardVersionId": "string", "templateCategory": "MARKETING", "billingRoute": "PLATFORM_1MSG", "total": { "usd": "0.0604", "brl": "0.3109", "rub": "4.9404" }, "breakdown": [ { "countryCode": "BR", "category": "MARKETING", "recipientCount": 10, "deliveredCount": 4, "lineTotal": { "usd": "0.0604", "brl": "0.3109", "rub": "4.9404" } } ]}