Short answer: A WhatsApp webhook is a web address that you give to WhatsApp. When something happens, such as a customer sending a message or a message being delivered, WhatsApp sends a small data package to that address so your software can react. You do not have to keep asking WhatsApp “anything new?”. It tells you.
A simple way to picture it
Imagine you are waiting for a parcel. You could walk to the door every five minutes to check, or you could install a doorbell. A webhook is the doorbell. Your system sits quietly, and WhatsApp rings it only when there is something to deliver.
The technical name for the “keep checking” approach is polling. It wastes effort and is slower. Webhooks are faster and are the way the WhatsApp Business API works.
What does a webhook tell you?
| Event | What it means for your business |
|---|---|
| Incoming message | A customer wrote to you. Your inbox, bot or CRM can show it or answer it. |
| Message status | Your message was sent, delivered, read or failed. Useful for campaign reports and finding bad numbers. |
| Template status | A message template was approved, rejected or changed category. |
| Account and quality updates | Your number’s quality rating or limits changed. |
What a webhook looks like
The data arrives as JSON, a plain text format that software reads easily. A simplified incoming message looks like this:
{
"from": "919876543210",
"type": "text",
"text": { "body": "Hi, is this still in stock?" },
"timestamp": "1732350000"
}
The real payload from Meta has more fields wrapped around this. You do not need to read it yourself if you use a platform. The platform reads it and shows you a normal chat.
Do I need to set up a webhook myself?
- If you use a platform like Wetarseel, the platform already receives WhatsApp’s webhooks for you. Messages appear in your shared inbox, and you set up nothing.
- If you want events in your own system, for example a CRM, a Google Sheet or an order system, you give the platform a webhook URL of your own, and it forwards the events there. Tools such as Zapier, Make or n8n can give you a URL without any coding. See the Wetarseel API reference and webhooks page for what is supported.
- If you build directly on the Cloud API, your developer creates the endpoint. Our WhatsApp Cloud API guide explains the basics, and our developer pages cover the rest.
How verification works
Before WhatsApp sends anything, it checks that the address really belongs to you.
- You enter your webhook URL and a secret word, called the verify token, in the Meta developer settings.
- Meta sends a test request to your URL that includes the verify token and a random number, called the challenge.
- Your server must check that the token matches and reply with the same challenge number.
- If it does, Meta saves the webhook. If not, you get a verification error.
After this, you also choose which events to subscribe to, such as messages. A verified webhook with no subscription receives nothing.
Keeping your webhook secure
- Use an HTTPS address. Meta does not deliver to plain HTTP.
- Check the signature. Meta signs each request with your app secret in the
X-Hub-Signature-256header, so your server can reject fakes. - Reply quickly with a success status, and do the heavy work afterwards.
- Expect repeats. Meta can send the same event more than once if it does not get a quick reply, so store the message ID and ignore duplicates.
Common webhook problems and fixes
| Problem | Likely cause | Fix |
|---|---|---|
| “Callback URL or verify token couldn’t be validated” | The token does not match, or the server does not return the challenge | Copy the token again and return the challenge exactly as sent |
| Verified, but no messages arrive | The messages field is not subscribed, or the app is not linked to your number |
Subscribe to the field and check the app and number are connected |
| Nothing reaches a test URL on your laptop | The address is localhost, which Meta cannot reach |
Use a public HTTPS tunnel for testing |
| Same message processed twice | Retry after a slow reply | Reply fast and ignore message IDs you have already seen |
| Events stop after a while | Your server returned errors or was down | Fix the server, then check the webhook status in Meta’s app settings |
Webhook or API: what is the difference?
The API is how you send things to WhatsApp, such as a message. The webhook is how WhatsApp sends things back to you, such as a reply. Most real setups use both. Our guide to the WhatsApp Business API shows how the pieces fit.
Frequently asked questions
What is a WhatsApp webhook in simple words?
It is a web address where WhatsApp delivers news about your account, such as new messages and delivery updates, so your software can react straight away.
Do I need a developer to use webhooks?
Not if you use a platform that handles them for you. You only need a developer to build your own endpoint or a custom connection to your systems.
What is a webhook verify token?
A secret word you choose. Meta sends it back during setup so your server can prove the URL is yours.
Why is my WhatsApp webhook not working?
The most common reasons are a verify token mismatch, an address that is not public HTTPS, a missing subscription to the messages field, or a server that replies too slowly.
Can I send WhatsApp events to Google Sheets or my CRM?
Yes. Forward the webhook events to a URL from a tool such as Zapier, Make or n8n, or to your own endpoint, and have it write the data where you need it.
Skip the setup with Wetarseel
Wetarseel receives WhatsApp events for you, shows every chat in a shared inbox and helps you connect your other tools. Our team helps with setup.
Start free trial Read the webhooks reference