A WhatsApp webhook is an HTTPS address that Meta sends a JSON request to every time something happens on your WhatsApp Business account, such as a customer sending a message or a message you sent being delivered or read. On the Cloud API you cannot receive customer messages any other way, so every WhatsApp integration starts with a working webhook endpoint that Meta has verified.
The word is also used for the other direction: a webhook address in your messaging tool that your store, booking system or CRM calls, so an event there sends a WhatsApp message. This guide covers both, with Meta's setup rules, the checks a production endpoint needs, and the faults that cause most webhook problems.
Two directions, two jobs
| Question | Meta to you | Your systems to your messaging tool |
|---|---|---|
| Who sends it | Meta's servers | Your store, booking system, CRM or form |
| Who receives it | Your endpoint, or your provider's | Your WhatsApp provider or helpdesk |
| What it carries | Customer messages, delivery statuses, template and account changes | An event such as an order shipped or a booking made |
| What it is for | Seeing and answering conversations | Sending the right WhatsApp message when something happens elsewhere |
| Who sets it up | A developer, or nobody if a provider runs it | An admin, by pasting an address into the other system |
What Meta sends to a WhatsApp webhook
Meta groups its WhatsApp webhooks into fields, and your app subscribes to the ones it needs. The ones most businesses care about:
The messages field carries every message a customer sends you (text, media, locations, button taps and list choices) and the status of every message you send, as sent, delivered, read or failed. This is the field an inbox or chatbot lives on.
The message_template_status_update field reports that a template you submitted was approved, rejected or otherwise changed status. Related fields report changes to a template's quality score, category and components.
The account_alerts field reports changes to a number's messaging limit, business profile or Official Business Account status.
For a number that also stays on the WhatsApp Business app, the smb_message_echoes, history and smb_app_state_sync fields report messages sent from the app, synchronise past chat history and synchronise contacts. Our guide to WhatsApp coexistence explains how that setup works.
The calls field reports call events for WhatsApp calls placed by customers or by the business, such as a call connecting or ending.
An incoming message arrives as a POST with a body shaped roughly like this, trimmed to the parts you read most often:
{
"object": "whatsapp_business_account",
"entry": [{
"changes": [{
"field": "messages",
"value": {
"metadata": { "phone_number_id": "PHONE_NUMBER_ID" },
"contacts": [{ "profile": { "name": "Customer name" }, "user_id": "BSUID" }],
"messages": [{ "id": "wamid.MESSAGE_ID", "type": "text",
"text": { "body": "Is the blue one in stock?" } }]
}
}]
}]
}
Status updates arrive in the same envelope with a statuses array instead of messages. One detail changed in 2026: customers can now adopt a WhatsApp username, and when they do, Meta may leave out their phone number. Meta's documentation says to identify customers by their business-scoped user ID (BSUID), and warns that an integration relying only on phone numbers will not be able to process messages from those customers. Our post on WhatsApp usernames covers what that means for your contact records.
Setting up a webhook endpoint on the Cloud API
These steps follow Meta's Cloud API documentation as of December 2026. If you have not created a Meta app and a WhatsApp Business account yet, start with our guide on how to get the WhatsApp API.
Put the endpoint on a public server with HTTPS and a valid TLS certificate. Meta does not accept self-signed certificates. The endpoint must answer both GET and POST requests at the same address, for example https://api.example.com/whatsapp/webhook.
Choose a verify token: any secret string you make up and store on the server.
Handle the verification request. Meta sends a GET with three query parameters: hub.mode set to subscribe, hub.verify_token and hub.challenge. If the token matches yours, reply with status 200 and the challenge value as the body. Otherwise reply with a 400-level status.
In the App Dashboard, open WhatsApp and then Configuration (or Use cases, Customize, Configuration for apps made with the WhatsApp use case), enter the callback URL and the verify token, and save. Meta sends the GET at that moment and again whenever you edit either field.
Subscribe to the fields you need, starting with messages.
Make sure the token your app uses has the right permissions: whatsapp_business_messaging for the messages and calls fields, and whatsapp_business_management for the others.
Send yourself a WhatsApp message and confirm the POST arrives and is logged.
Meta also offers a test endpoint that logs payloads to the console, which is useful for seeing real payloads before you write code, but an app in production must use its own endpoint.
What a production endpoint has to handle
Getting the first message through is the easy part. Most webhook problems appear later, under load or after an outage.
Check the signature on every POST
Each POST includes an X-Hub-Signature-256 header in the form sha256= followed by a hash. Compute an HMAC-SHA256 of the raw request body using your app secret as the key, compare it with the header, and drop the request if they differ. Compute it on the raw bytes before any JSON parsing, because re-serialised JSON will not hash the same. For more assurance Meta supports mutual TLS, where Meta presents a client certificate your server can check against Meta's certificate authority.
Reply 200 fast, then do the work
If your endpoint returns anything other than status 200, or cannot be reached, Meta retries with decreasing frequency for up to 7 days. Slow handlers that call an AI model or a CRM before responding risk timeouts and retries. Write the payload to a queue or database, return 200, and process it separately.
Expect duplicates and batches
Retries mean the same event can arrive twice, and Meta notes that retries go to every app subscribed to the account. Keep the message ID (the value starting wamid.) of every event you process and ignore repeats, or a customer may get two replies to one question. Meta may also batch up to 1,000 updates into one POST, though it does not guarantee batching, so loop over every entry and change rather than reading only the first.
Store what you receive
Meta states there is no API for fetching past webhook data. If your endpoint drops a payload after returning 200, that message is gone from your side, so persist the raw payload before you do anything else with it.
Do not assume order
Because a failed delivery is retried later while newer events keep arriving, an older event can reach you after a newer one. Update records by message ID and status, and never let a delivered status overwrite a read one.
When webhooks stop arriving
Verification fails: the verify token in the dashboard and on the server differ, the server returns the challenge wrapped in JSON instead of as the plain value, or the certificate is self-signed or expired.
Verification passes but no messages arrive: the messages field is not subscribed, the app is not subscribed to the right WhatsApp Business account, or the token lacks whatsapp_business_messaging.
Some messages are missing: on a number that also uses the WhatsApp Business app, a message sent from an unsupported companion device can arrive as error 131060 with no content. Our error 131060 guide explains it.
Customers show no phone number: they have adopted a username, so match them on BSUID.
Signature checks fail on every request: the hash is computed on parsed JSON instead of the raw body, or with the wrong app's secret.
Errors themselves can sit in more than one place in a payload, including inside a failed status, so log full payloads while you debug. Our guide to common WhatsApp API errors lists the codes you are most likely to meet.
Using webhooks to send WhatsApp messages from other systems
The second meaning of WhatsApp webhook is an address in your messaging tool that another system calls. Many business systems can call a URL when something happens: a store when an order ships, a booking system when an appointment is made or moved, a form when someone submits it. Point that system at a webhook address in your WhatsApp tool, and the event can send a message straight away instead of waiting for a scheduled check.
Three conditions apply to every message triggered this way:
Outside a 24-hour customer service window, the message must be an approved template. An order update or booking confirmation is usually a utility template. See our guide to WhatsApp message templates.
The customer must have agreed to hear from you on WhatsApp.
The webhook payload must identify the customer, usually by phone number, so the tool can find the right contact.
Before you build, check whether the other system sends webhooks at all. Some only offer an API to poll, and some offer webhooks only on higher plans or to partners.
Building it yourself compared with using a provider
A webhook endpoint is a small piece of code, but it is only the start. Around it you need storage, a queue, signature checks, deduplication, retries for your own outbound calls, monitoring, and somewhere for your team to read and answer messages. If WhatsApp is your product, building that is reasonable. If WhatsApp is how you talk to customers, a provider or helpdesk that already runs the endpoint saves the build and the on-call duty. Our guide to the WhatsApp Cloud API compares the two routes in more detail.
How Volty handles webhooks
When you connect a WhatsApp number to Volty, Volty runs the webhook endpoint for you. Every inbound webhook is authenticated before it is read, using the signature Meta attaches, and messages land in one shared inbox alongside Instagram, Messenger, email and web chat, where Volty's AI agent answers or drafts replies and hands conversations to your team. You can keep the WhatsApp Business app on the same number. Happy Fish, a swim school with 21 outlets, handles more than 1,800 messages a day through Volty.
For the other direction, an admin creates a webhook address on a Volty automation and points the other system at it. A booking system such as Semble, which sends webhooks when a booking changes, can then trigger a WhatsApp confirmation to the patient straight away from an approved template. Volty can also read systems on a schedule, so a source without webhooks still works. Each webhook call uses one Volty request; Volty Plus, US$159 a month, includes 300,000 Volty requests a month. Prices can change, so check Volty pricing for the current plans in your market.

Frequently asked questions
What is a WhatsApp webhook?
A WhatsApp webhook is an HTTPS address on your server, or your provider's, that Meta sends a JSON request to whenever something happens on your WhatsApp Business account. The most common events are an incoming customer message and a status update saying a message you sent was sent, delivered, read or failed. On the Cloud API, webhooks are the only way to receive customer messages.
How do I verify a WhatsApp webhook?
When you save the callback URL and verify token in your Meta app's WhatsApp configuration, Meta sends a GET request with hub.mode, hub.verify_token and hub.challenge. Your server checks that hub.verify_token matches the string you stored and replies with HTTP status 200 and the hub.challenge value. Any other reply leaves the endpoint unverified and no webhooks are sent.
How do I know a WhatsApp webhook really came from Meta?
Each webhook POST carries an X-Hub-Signature-256 header containing an HMAC-SHA256 hash of the request body, made with your app secret as the key. Compute the same hash on your server from the raw body and compare the two; if they do not match, discard the request. Meta also supports mutual TLS for extra assurance.
Why am I getting duplicate WhatsApp webhooks?
Meta retries a webhook when your endpoint does not return HTTP status 200, with decreasing frequency for up to 7 days, and it sends retries to every app subscribed to the account. That can deliver the same event more than once. Store the message ID from each event and skip any ID you have already processed.
Do I need to build a webhook to use the WhatsApp Business API?
Only if you connect to the Cloud API directly with your own Meta app. If you use a WhatsApp provider or a helpdesk built on the API, the provider runs the webhook endpoint and shows the messages in its inbox, so there is nothing for you to host.

















