Skip to Content
1MSG
ReferenceCampaigns API

Forecast campaign cost

GET
/api/v1/campaigns/{campaignId}/cost/forecast

Estimates campaign cost by pricing every audience recipient as delivered against the active WhatsApp list-rate card and approved template category.

  • Returns billingRoute (DIRECT_META for own WABA / BYOW, or PLATFORM_1MSG for a 1msg platform channel), overall total, and per-country breakdown[].lineTotal in USD, BRL, and RUB.
  • Requires an assigned segmentId when forecasting a draft campaign before recipient materialization.
  • Returns 422 with errorCode: CAMPAIGN_COST_RATE_CARD_MISSING, CAMPAIGN_COST_RATE_ROW_MISSING, CAMPAIGN_COST_TEMPLATE_CATEGORY_INVALID (for non-list-rate categories such as MARKETING_LITE or SERVICE), CAMPAIGN_COST_TEMPLATE_MISSING, or CAMPAIGN_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.

Authorization

bearer
headerAuthorizationBearer <API key>

Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.

Path Parameters

campaignId*string

Campaign id returned by create or list.

Response Body

application/json
  1. response
campaignId*string
rateCardVersionId*string

Active whatsapp_list_rate_versions id used for this estimate.

templateCategory*string
Value in"MARKETING""UTILITY""AUTHENTICATION"
billingRoute*string

Channel 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<>
Example Request
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"      }    }  ]}