WhatsApp Business
WhatsApp Business Platform: A Practical Guide for Developers
How the WhatsApp Business Platform works for developers: Cloud API vs providers, phone numbers, templates, the 24-hour window, webhooks, pricing, and limits.
The WhatsApp Business Platform (often still called the WhatsApp Business API) lets companies send and receive WhatsApp messages from their own systems, at scale. It is different from the WhatsApp Business app on a phone: there is no inbox by default, and everything happens through APIs and webhooks.
The building blocks
Business Portfolio. Your company's account in Meta Business Manager. Verifying your business with company documents lifts limits and unlocks features.
WhatsApp Business Account (WABA). Holds your phone numbers and message templates.
Phone number. A number not registered on a regular WhatsApp account. It shows your verified display name to users.
Templates. Pre-approved message formats you need to start a conversation. See getting templates approved.
Webhooks. How you receive incoming messages and delivery statuses (sent, delivered, read, failed).
Cloud API or a provider?
You can connect directly to Meta's Cloud API, hosted by Meta, or use a Business Solution Provider (BSP) or messaging platform that sits on top of it.
- Direct Cloud API: full control, no extra layer, but you build template management, retries, logs, opt-out handling, and multi-channel logic yourself.
- Provider: faster setup, onboarding help, extra features such as SMS fallback and dashboards, at an added cost.
Many teams start with a provider and move pieces in-house as they grow, or the reverse.
Two kinds of messages
- Template messages, which you can send at any time to users who opted in. They are priced by category: marketing, utility, or authentication.
- Free-form messages, which you can send only within the 24-hour customer service window after the user's last message to you. See the 24-hour window explained.
Sending a template (simplified)
POST https://graph.facebook.com/{version}/{phone-number-id}/messages
Authorization: Bearer {access-token}
Content-Type: application/json
{
"messaging_product": "whatsapp",
"to": "201012345678",
"type": "template",
"template": {
"name": "order_update",
"language": { "code": "ar" },
"components": [
{ "type": "body", "parameters": [{ "type": "text", "text": "1042" }] }
]
}
}
Statuses arrive on your webhook as the message is sent, delivered, read, or fails.
Limits and quality
New numbers can message a limited number of unique users per 24 hours; the limit grows as you send good-quality traffic. A quality rating based on user feedback such as blocks and reports can reduce your limits if it drops. See quality rating and messaging limits.
Pricing
Meta charges per delivered template message, by category and the recipient's country, while replies inside the customer service window are generally free. See how WhatsApp Business pricing works.
Policy essentials
- Opt-in before you message anyone. See WhatsApp opt-in best practices.
- Honour opt-outs immediately.
- Follow the WhatsApp Business and Commerce policies; some industries and products are restricted.
Where WhatsApp fits with SMS
WhatsApp is excellent for confirmations, rich updates, and support. SMS still reaches users WhatsApp cannot. Running both on one platform, with failover, gives you the best reach. For an Egypt-specific setup, see WhatsApp Business in Egypt.