Override Callback URL

POST https://graph.facebook.com/{{Version}}/{{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 .

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"}}]}