WhatsApp · WhatsApp Phone Numbers

Get pricing analytics

Fetches pricing analytics.

GEThttps://api.pozy.ai/v1/whatsapp/pricing-analytics
getWhatsAppPricingAnalytics

Guide: WhatsApp pricing

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the analytics resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
accountIdrequiredstring
startrequiredstring (date-time)
endrequiredstring (date-time)
granularityrequiredstringOne of HALF_HOUR, DAILY, MONTHLY
dimensionsstring
metricTypesstring
pricingTypesstring
pricingCategoriesstring
countryCodesstring

Example

curl -X GET "https://api.pozy.ai/v1/whatsapp/pricing-analytics?accountId=696e0b682d0a31188e7a2ba9&start=2026-10-02T09%3A00%3A00.000Z&end=2026-10-02T09%3A00%3A00.000Z&granularity=HALF_HOUR" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • accountIdstringrequired
  • phoneNumberstringrequired
  • granularitystringrequired

    One of HALF_HOUR, DAILY, MONTHLY.

  • startstring (date-time)required
  • endstring (date-time)required
  • dataPointsarray of objectrequired
    9 child fields
    • startstring (date-time)required
    • endstring (date-time)required
    • phoneNumberstringrequired

      Can be null.

    • countrystringrequired

      Can be null.

    • tierstringrequired

      Can be null.

    • pricingTypestringrequired

      Can be null.

    • pricingCategorystringrequired

      Can be null.

    • volumeintegerrequired

      Can be null.

    • costnumberrequired

      Can be null.

200 response
{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "phoneNumber": "+14155550123",
  "granularity": "HALF_HOUR",
  "start": "2026-10-02T09:00:00.000Z",
  "end": "2026-10-02T09:00:00.000Z",
  "dataPoints": [
    {
      "start": "2026-10-02T09:00:00.000Z",
      "end": "2026-10-02T09:00:00.000Z",
      "phoneNumber": "+14155550123",
      "country": "US",
      "tier": "string",
      "pricingType": "string",
      "pricingCategory": "string",
      "volume": 1,
      "cost": 12.5
    }
  ]
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in WhatsApp Phone Numbers