Get pricing analytics
Message volume and approximate cost for one connected WhatsApp number. Read live from Meta's pricing_analytics on the WhatsApp Business Account and scoped to that account's phone number.
Meta's figures are approximate and can lag; Meta bills from its own invoice.
Meta limits how far back and how fine the data goes (for example HALF_HOUR only over short ranges), and answers out-of-range requests with an error.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Query parameters
WhatsApp account ID
Range start, ISO 8601 date or date-time.
Range end, ISO 8601 date or date-time. Must be after start.
HALF_HOUR | DAILY | MONTHLYSize of each data point. Use DAILY for short or month-to-date ranges.
Meta refuses MONTHLY when the range is too short for a monthly bucket (for example a range that starts at the beginning of the current month and ends today). That is a 400 with param: granularity and Meta's reason in error.
Comma-separated breakdowns: COUNTRY, PHONE, PRICING_CATEGORY, PRICING_TYPE, TIER. Without it each data point is a total for the interval.
Comma-separated: COST, VOLUME. Defaults to both.
Comma-separated filter: REGULAR, FREE_CUSTOMER_SERVICE, FREE_ENTRY_POINT.
Comma-separated filter of Meta pricing categories, for example MARKETING, MARKETING_LITE, UTILITY, AUTHENTICATION, AUTHENTICATION_INTERNATIONAL, SERVICE, REFERRAL_CONVERSION.
Comma-separated ISO 3166-1 alpha-2 country codes to filter on.
Responses
Success· the request worked
Errors· the request failed
Get ice breakers and commands
Read the number's conversational automation (Meta's `conversational_automation`): ice breaker prompts, slash commands and the welcome-message flag. A number with none set returns the empty configuration.
Set ice breakers and commands
Set ice breaker prompts (up to 3, 80 characters each), slash commands (up to 30) and the welcome-message flag on the number. Only the fields you send are changed. A tapped prompt arrives as a normal `message.received` carrying its text.