Skip to content
WhatSync/DocsAPI v1

Read historical Meta WhatsApp charges

Read up to 90 days of Meta pricing analytics for delivered messages, including category and cost when Meta provides it.

POST/api/v1/tools/get_business_pricing_analyticsRead
Key permissions
Read chats and messages
Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work

How it works

This is historical spend, not a guaranteed quote for a new message.

Body parameters

daysintegeroptional

See the example and input schema for this value.

Response

HTTP 200 returns this tool's JSON directly, without an MCP content wrapper. Optional provider fields may be absent or null; check pagination and coverage before treating a page as complete.

Every response includes X-Request-Id. Errors use the shared error format and retry rules.

Schemas

Input JSON Schema
Input JSON Schema
{
  "type": "object",
  "properties": {
    "days": {
      "type": "integer",
      "minimum": 1,
      "maximum": 90
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "historical_cost": {
      "type": [
        "number",
        "null"
      ]
    },
    "data_points": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "description": "Provider or tool-specific fields; preserve unknown fields."
      }
    },
    "truncated": {
      "type": "boolean"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": true
}