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.
Authorizations
Eazybe bearer token. The token resolves the caller's organization and must be kept on the server.
Path Parameters
WhatsApp Business Account ID returned by GET /meta/phone-numbers.
Body
Public HTTPS URL on your server that receives the webhook events. It must be reachable when this request is made, because Meta runs the verification handshake against it.
A secret string you choose. Meta sends it back as hub.verify_token during the verification handshake so your endpoint can confirm the request is genuine.
Response
App subscribed to this WABA's events
Failure responses