Override Callback URL
POST https://graph.facebook.com/{{Version}}/{{Assigned-WABA-ID}}/subscribed_apps
If you want to subscribe to Webhooks for multiple WhatsApp Business Accounts but want messages field Webhooks notifications to be sent to different callback URLs for each WABA, you can override the callback URL when subscribing to Webhooks for each WABA.
To do this, first verify that the alternate Webhook endpoint can receive and process Webhooks notifications. Then, subscribe to Webhooks for the WABA as your normally would, but include the alternate endpoint's callback URL along with its verification token as a JSON payload:
For more information, see Overriding the Callback URL .
Response
To verify that the app is subscribed to webhooks for the WABA with an alternate callback URL,
get all subscriptions on the WABA
as you normally would. The response should include an
override_callback_uri
property and value.
To remove an alternate callback URL, subscribe to webhooks for the WABA as you normally would. This will remove the alternate endpoint's callback URL and messages field webhooks for the WABA will once again be sent to the callback URL set in the App Dashboard.
Request Body
{"override_callback_uri"=>"<ALTERNATE_WEBHOOK_ENDPOINT_URL>", "verify_token"=>"<ALTERNATE_WEBOOK_ENDPOINT_VERIFICATION_TOKEN>"}
HEADERS
| Key | Datatype | Required | Description |
| Authorization
| string | | |
RESPONSES
status: OK
{"data":[{"override_callback_uri":"https://alternate-endpoint-callback.com/webhook","whatsapp_business_api_data":{"id":"670843887433847","link":"https://www.facebook.com/games/?app_id=67084...","name":"Jaspers Market"}}]}