Skip to Content
1MSG
ReferenceCampaigns API

Actual campaign cost

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

Returns the frozen completion cost snapshot pricing recipients whose deliveryStatus is delivered (read is reported separately and not double-counted).

  • Returns snapshotId, completedAt, billingRoute (DIRECT_META or PLATFORM_1MSG), final estimated total, and per-country breakdown[].lineTotal in USD, BRL, and RUB.
  • Returns 404 (CAMPAIGN_COST_SNAPSHOT_MISSING) when the campaign is not completed or has no cost snapshot (never a synthetic zero-money body).

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<>
snapshotId*string

campaign_cost_snapshots id. Rates are the ones frozen at completion.

completedAt*string

When the snapshot was written, aligned with completion.

Formatdate-time
Example Request
curl -X GET 'https://api.1msg.io/api/v1/campaigns/string/cost/actual'
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"      }    }  ],  "snapshotId": "string",  "completedAt": "2019-08-24T14:15:22Z"}