REST API + MCP · WhatsApp Business API

WhatsApp Analytics API

The difference between an AI that can send WhatsApp and one that can understand it. Query your messaging, conversations, campaigns and CRM — built to be read by AI agents.

Create free account →Read the API docs
MessagesConversationsLeads & casesCampaign results

Questions you can actually answer

Each maps to a real Gambot analytics endpoint / metric — nothing fabricated.

  • “How many messages did we receive / send today?” — GET /analytics/summary, /analytics/messages.
  • “How many conversations are waiting for a response?” — GET /conversations/sla.
  • “How many new leads / how is the pipeline?” — GET /analytics/leads.
  • “What happened in customer service today?” — GET /analytics/cases (+ SLA).
  • “What were the most common customer questions?” — GET /analytics/transcript (read the actual content, then summarize).
  • “How did the campaign perform?” — GET /campaigns/{id}/results.

AI-readable analytics shape

Responses are structured so an agent doesn’t have to reconstruct anything. Base URL: https://api.gambot.co.il/api/v1.

GET https://api.gambot.co.il/api/v1/analytics/summary?period=today

{
  "period": { "from": "2026-09-19", "to": "2026-09-19", "period": "today" },
  "messages": { "incoming": 184, "outgoing": 231 },
  "conversations": { "active": 63, "waitingForReply": 12 }
  /* Shape is illustrative; exact fields come from your account’s data. */
}

Clear time periods & timezone

Agents ask for “today”, “yesterday”, “this week” or “last 30 days”. The analytics endpoints accept a period shortcut or explicit from/to dates and always return the resolved range, so the agent knows exactly what it measured. Day boundaries follow the account’s business timezone — no guessing which “today” is meant.

Sensitive data is never auto-exposed: analytics respect the API key’s scopes, and message content is only available through the explicit transcript endpoint (which requires the appropriate scope).

With an AI agent (MCP)

You How many WhatsApp messages did we receive today?

Agent 147 received; 32 new leads; 11 waiting for a reply. (Illustrative — real values come from your analytics endpoints.)

You Which customers are still waiting for a reply?

You Summarize today’s customer service conversations.

Example numbers are illustrative, not Gambot statistics.

Give your AI real WhatsApp understanding

Create a free account, connect WhatsApp, and let agents query your operation — not just send messages.

Frequently asked questions

What WhatsApp metrics can I query via API?

Message volume (received/sent), conversations waiting for a reply (SLA), new contacts, leads pipeline, cases/tickets, tasks, CTWA ad performance, bot runs, and campaign results — each via a dedicated analytics endpoint.

How are time periods handled?

Use a period shortcut (today, yesterday, week, month, 30d, all) or explicit from/to dates; the response returns the resolved range. Day boundaries follow the account’s business timezone.

Can an AI read the actual conversation content?

Yes, through the transcript endpoint (with the appropriate scope) — useful for qualitative questions like “what did customers ask about today?”. Content access respects the API key’s scopes.

Are the example numbers real Gambot statistics?

No — example figures on this page are illustrative. Real values are computed from your own account’s data.