Messaging and CPaaS

WhatsApp Business API in 2026: The Complete Developer Guide

Cover image: WhatsApp Business API in 2026: The Complete Developer Guide

The WhatsApp Business API lets your application send and receive WhatsApp messages programmatically: notifications, OTPs, support conversations, broadcasts and, now, voice calls. This guide walks through what you need to get approved, how to send your first message, how webhooks work and the rules that catch most teams out.

What you need before you start

  • A Meta Business Portfolio (formerly Business Manager) for your company, verified with your legal name and documents.
  • A phone number that can receive an SMS or voice call for verification. It must not be active on the WhatsApp or WhatsApp Business app.
  • A display name that matches your brand and follows Meta's naming rules.
  • A provider account. You can connect to Meta yourself, or work through a provider that hosts the platform and handles onboarding, templates and support. With EnableX, you get an App ID and App Key for the API and a console for templates and numbers.

Full requirements are in the WhatsApp prerequisites page.

How approval works

  1. Your provider creates or links your WhatsApp Business Account (WABA) to your Meta Business Portfolio.
  2. You register and verify the phone number.
  3. Meta reviews the display name.
  4. Business verification raises your limits and makes you eligible to apply for the green tick.

Most brands go live within a few business days once business verification is in place. The usual delays are a rejected display name or a mismatch between the legal name and the documents.

Two kinds of messages: templates and session messages

This is the rule every developer needs to understand first.

  • Session messages. When a customer messages you, a 24-hour customer service window opens. Inside it, you can send any message type freely: text, media, buttons, lists.
  • Template messages. To start a conversation, or to message after the window closes, you must use a template that Meta has approved.

Templates fall into three categories, and the category sets the price:

CategoryUsed forExample
MarketingOffers, launches, re-engagement"Your cart is waiting, 10% off today"
UtilityUpdates on something the customer asked forOrder shipped, appointment reminder
AuthenticationOne-time passwords"Your code is 482913"

Templates support variables, headers with images, video or documents, and up to several buttons: quick replies, a URL or a phone number.

Send your first message

Authenticate with your App ID and App Key and send one request.

curl -X POST https://api.enablex.io/whatsapp/v1/messages \

-u APP_ID:APP_KEY \

-H "Content-Type: application/json" \

-d '{

"to": "+6599999999",

"type": "text",

"recipient_type": "individual",

"text": { "body": "Thank you for reaching out! We will get back to you shortly." }

}'

This free-text message only delivers inside an open 24-hour window. To reach a customer outside it, send a template message with the template name, language and variable values. The exact payload is in the WhatsApp API reference.

Receive messages and status updates with webhooks

Your application learns what happened through webhooks. Register an HTTPS endpoint and you will receive:

  • Inbound messages: text, media, button replies, list selections, location and Flow responses.
  • Status updates: sent, delivered, read and failed, with an error code when a message fails.

Three practical tips:

  1. Respond with 200 quickly. Process the payload in a queue. Slow endpoints cause retries and duplicate events.
  2. Make handlers idempotent. Use the message ID to ignore duplicates.
  3. Store the status trail. It is your proof of delivery and the fastest way to debug.

See the webhook reference for payload formats.

Interactive features worth building

  • Buttons and lists. Quick replies and list pickers are far easier to parse than free text.
  • WhatsApp Flows. Multi-step forms inside WhatsApp for lead capture, KYC and booking, with the response posted to your backend.
  • Catalogues and payments. Product browsing and in-chat payment where local options are supported.
  • WhatsApp Calling. Customers can tap to call your business inside the chat. You can answer with a human agent or an AI voice agent.
  • AI agents. Connect a WhatsApp AI chatbot to answer routine questions and hand over to a person with the conversation attached.

Pricing in 2026

Meta moved from conversation-based pricing to per-message pricing in July 2025. You now pay:

  • Per template message, by category (marketing, utility, authentication) and the recipient's country.
  • Nothing for service replies sent inside the 24-hour window.
  • Your provider's fees, which should be listed separately.

Utility templates sent inside an open service window are also free under Meta's current rules. Check WhatsApp API pricing for rates by country.

Messaging limits and quality rating

Meta limits how many unique customers you can start conversations with in a rolling 24 hours. New numbers start low. The limit rises automatically as you send templates that people read and do not block or report.

Each number also carries a quality rating. A drop to low quality can reduce your limit or pause a template. Watch the quality events in your webhooks and pause a campaign when complaints rise.

Fallback to SMS and RCS

WhatsApp does not reach everyone. Some customers are not on it, and some messages fail. For OTPs and critical alerts, send through the Unified Messaging API, which tries WhatsApp first and falls back to SMS or RCS automatically, with one report for all three.

Common errors and what they mean

SymptomLikely cause
Message fails outside 24 hoursFree text sent with no open window; use a template
Template rejectedWrong category, missing variable samples, or vague content
Number rate-limitedDaily limit reached or quality rating dropped
Webhook events arrive twiceEndpoint was slow to return 200
Display name not approvedName does not match your business or brand evidence

Frequently asked questions

Do I need a provider, or can I connect to Meta directly?

You can connect directly, but you then handle onboarding, templates, hosting and Meta escalations yourself. A provider handles those and usually adds SMS, voice and AI on the same API.

What do I need to get a WhatsApp Business API account approved?

A verified Meta Business Portfolio, a phone number not in use on the WhatsApp app, and a display name that matches your business.

Can I use the API for OTPs?

Yes. Use authentication templates, which support one-tap autofill on Android, and set up SMS fallback for customers who do not receive them.

Is there a WhatsApp Calling API?

Yes. Businesses can receive and, in supported markets, place voice calls inside WhatsApp, and connect them to a human agent or an AI voice agent.

Which SDKs and languages are supported?

The EnableX WhatsApp API is a REST API that you can call from any language. The documentation includes cURL, Node.js and Python examples.

Build it

Start a free trial to get API keys in 2 minutes, then follow the WhatsApp quickstart.

Subrat Thayal

Subrat Thayal

Head - Engineering & AI, EnableX

Subrat Thayal is a founding member of EnableX and leads its engineering and AI. He has built the EnableX platform since the company started in 2017. He has worked alongside Pankaj Gupta for more than 20 years, and for the last few years has led the work to build AI into EnableX voice, messaging and video products.

Connect on LinkedIn →

Build it on EnableX.

Voice, video, messaging and AI agents on one platform, in the cloud or on-premise.