01 · Definition
What is the WhatsApp Cloud API?
The Cloud API is the version of the WhatsApp Business Platform that Meta hosts. Businesses and their providers call it over HTTPS as part of Meta's Graph API: one endpoint to send messages, others for media, templates, phone numbers and business profiles. Meta runs the servers, scales them and ships new features to them, and pushes every inbound message and delivery status to your webhook. Nothing has to be installed.
It replaced the On-Premises API, a Docker-based client that businesses or their providers had to host, patch and scale themselves. New On-Premises registrations ended on 1 July 2024 and the On-Premises API was sunset on 23 October 2025, so every WhatsApp Business API integration today runs on the Cloud API, whether you connect your own Meta app or use a provider.
The terms overlap, which confuses people. The WhatsApp Business API is the commercial product; the WhatsApp Business Platform is Meta's umbrella for it, including WhatsApp Manager and Embedded Signup; the Cloud API is the concrete set of endpoints your code calls. The Messages Endpoint, /{PHONE_NUMBER_ID}/messages, is the single most used part of it.
Key takeaways
- The Cloud API is Meta's hosted WhatsApp Business Platform API and, since the On-Premises API was sunset on 23 October 2025, the only way to send messages.
- You send with a POST to
https://graph.facebook.com/v26.0/{PHONE_NUMBER_ID}/messages; inbound messages and statuses arrive by webhook. - Each registered number gets up to 80 messages per second by default, upgraded automatically to 1,000 for eligible high-volume senders.
- Requests authenticate with a bearer access token, ideally a system user or business token, never a personal user token.
- The Cloud API does not change pricing: Meta charges per delivered message by category, whichever provider sends it.
02How does InfiQ help with the WhatsApp Cloud API?
InfiQ runs on Meta's Cloud API, so there is nothing to host. You send from InfiQ's dashboard or its API, which takes exactly the body Meta's Cloud API accepts, and receive events as signed InfiQ webhooks.
WhatsApp Business API on InfiQ03 · Code samples
The WhatsApp Cloud API in code
curl -X POST "https://api.infiq.in/v1/messages" \-H "X-INFIQ-API-KEY: {INFIQ_API_KEY}" \-H "Content-Type: application/json" \-d '{"messaging_product": "whatsapp","to": "919812345678","type": "template","template": {"name": "order_confirmed","language": { "code": "en" },"components": [{ "type": "body", "parameters": [{ "type": "text", "text": "Ananya" },{ "type": "text", "text": "#A1043" }] }]}}'
04Playground
A working model of Cloud API. Use its controls to replay it step by step.
Send your first Cloud API message
https://api.infiq.in/v1/messagesPOST 200 in 420 ms(simulated)
Request
3 headers · bodyResponse
200 OKResponse: 200 OK after 420 ms.
05 · Specifications
The WhatsApp Cloud API: key facts and limits
| Base URL | https://graph.facebook.com/v26.0/ |
|---|---|
| Send endpoint | POST /{PHONE_NUMBER_ID}/messages |
| Default throughput | Up to 80 messages per second per number |
| Upgraded throughput | 1,000 mps, automatic for eligible senders |
| Rate-limit error | 130429 (throughput exceeded) |
| Webhook retries | Decreasing frequency, up to 7 days |
| On-Premises API | Sunset 23 October 2025 |
| Message data at Meta | Kept for at most 30 days |
06 · Operation
How does the WhatsApp Cloud API work?
Get the IDs and a token
You need a phone number ID (the sender), a WhatsApp Business Account (WABA) ID (for templates) and an access token with
whatsapp_business_messagingandwhatsapp_business_management. Use a system user token or a business token, not a short-lived user token.Register the number
POST
/{PHONE_NUMBER_ID}/registerwithmessaging_product: "whatsapp"and a 6-digit two-step verificationpin. Until a number is registered, sends fail.Subscribe your app to the WABA and set a webhook
POST
/{WABA_ID}/subscribed_appsso the account's events reach your app, and configure the callback URL and verify token for themessagesfield. Without both, you can send but never hear back.Send a message
POST JSON to
/{PHONE_NUMBER_ID}/messages. Outside the 24-hour customer service window only a template will be delivered (free-form text fails later with error 131047 in a status webhook); inside it you can send text, media, interactive and other message types.Track what happened by webhook
The send response gives a
wamidand means only that Meta accepted the request. Delivery, read and failure arrive later as status webhooks keyed by the samewamid.
07 · Cautions
Common mistakes with the WhatsApp Cloud API
Reading a 200 as delivered
A successful send only means Meta accepted the message. It can still fail later (for example, a user who cannot receive it). Treat the
wamidas pending until a status webhook arrives.Shipping with a temporary token
The token shown in the App Dashboard's quick start expires within a day. Create a system user, assign it the WABA and generate a long-lived token before going live.
Forgetting to subscribe the app to the WABA
A webhook URL in the app settings is not enough. Call
POST /{WABA_ID}/subscribed_appsfor each WABA, or webhooks for that account never arrive.Bursting above the per-number limit
A campaign fired as fast as possible hits 80 mps and gets error 130429. Queue sends per phone number and pace them, with retries using backoff.
Pinning an old Graph version and forgetting it
Each Graph API version expires about two years after its successor ships. Put the version in config, read the changelog and test upgrades before the old one expires.
08 · Rationale
Why does the WhatsApp Cloud API matter?
For developers, the Cloud API is the contract: its request shapes, error codes, webhooks and limits decide how an integration is built and how it fails. Knowing the core endpoints, the throughput ceiling and what lives where (messages on the phone number, templates on the WhatsApp Business Account) saves days of trial and error and avoids the classic outages: expired tokens, missing webhook subscriptions and bursts above the per-second limit.
09 · Worked example: First template from a Bengaluru start-up
Example: First template from a Bengaluru start-up
A food-delivery start-up in Bengaluru connects its own Meta app to the Cloud API. Its order service calls /{PHONE_NUMBER_ID}/messages with the approved order_confirmed utility template whenever an order is placed. The response returns a wamid within a few hundred milliseconds; seconds later a status webhook reports delivered, then read. During a Friday-night peak the queue holds sends at 70 a second to stay under the 80 mps default, and no request is rejected with error 130429.
10 · Recommended practice
Best practices for the WhatsApp Cloud API
- Log the
fbtrace_idfrom error responses; Meta support needs it to trace a failed call. - Keep one queue per phone number so one busy number cannot starve the others.
- Use the test number Meta provides with a new app to build the integration before your real number is ready.
- Store the full webhook payloads for a few days (with personal data masked) to debug missing statuses.
11 · Questions and answers
Cloud API FAQs
- Is the WhatsApp Cloud API free?
- Access is free, the messages are not. Meta charges no hosting or API fee, but bills per delivered message by category, and since 1 October 2026 service replies in India are charged too. Providers usually add a platform fee.
- What is the difference between the Cloud API and the On-Premises API?
- The Cloud API is hosted by Meta; the On-Premises API was software businesses hosted themselves. The On-Premises API was sunset on 23 October 2025, so all WhatsApp Business API traffic now runs on the Cloud API.
- How many messages per second can the WhatsApp Cloud API send?
- Up to 80 messages per second per registered number by default. Numbers with an unlimited messaging limit, enough volume and at least medium quality are upgraded automatically to 1,000 messages per second.
- Do I need a BSP to use the WhatsApp Cloud API?
- No. You can connect your own Meta app directly and add your own payment method. Many businesses still use a Solution Partner or Tech Provider for software, billing and support.