Subscribe a WABA to webhooks
curl --request POST \
--url https://cerberus.eazybe.com/prod/api/v2/meta/wabas/{wabaId}/webhook-subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"overrideCallbackUri": "https://your-app.com/webhooks/whatsapp",
"verifyToken": "shared-secret"
}
'{
"success": true
}Webhooks
Subscribe a WABA to webhooks
Subscribes a WABA so that incoming WhatsApp messages and delivery updates are pushed to your HTTPS callback URL in real time.
Your callback must be live before you call this endpoint. During this
request, Meta verifies the URL once by sending
GET <overrideCallbackUri>?hub.mode=subscribe&hub.verify_token=<verifyToken>&hub.challenge=<random>.
Your endpoint must confirm that hub.verify_token matches your secret and
respond 200 with the raw hub.challenge value — otherwise this request
fails with 400.
POST
/
meta
/
wabas
/
{wabaId}
/
webhook-subscriptions
Subscribe a WABA to webhooks
curl --request POST \
--url https://cerberus.eazybe.com/prod/api/v2/meta/wabas/{wabaId}/webhook-subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"overrideCallbackUri": "https://your-app.com/webhooks/whatsapp",
"verifyToken": "shared-secret"
}
'{
"success": true
}The Instant Webhook guide walks through this setup step by step, with ready-to-use callback code in Node.js and Python.
Authorizations
Path Parameters
Body
application/json
Response
200 - application/json
App subscribed to this WABA's events
Failure responses
| Status | Meaning | Action |
|---|---|---|
401 | Missing, invalid, or expired bearer token | Re-authenticate |
404 | wabaId not linked to your organization | Verify the id |
400 | Callback URL failed Meta's verification handshake, or is not HTTPS | Return hub.challenge on the GET handshake |
502 | Graph unreachable or timed out | Retry with backoff |
Was this page helpful?