GET
Verify Meta Webhook
Meta calls this URL once during webhook setup. Register it as the Callback URL in Meta Developer Console. The verify_token must match the value from set_cloud_webhook.
API endpoint
https://waclient.com/api/webhook/META68B6ED90CXXXXExample:
curl -X GET \
'https://waclient.com/api/webhook/META68B6ED90CXXXX' \
-G \
--data-urlencode 'hub_mode=subscribe' \
--data-urlencode 'hub_verify_token=my_verify_token' \
--data-urlencode 'hub_challenge=CHALLENGE_STRING'Response
CHALLENGE_STRING| Parameter | Description |
|---|---|
| hub.mode | Must be subscribe |
| hub.verify_token | Same verify_token saved via set_cloud_webhook |
| hub.challenge | Challenge string returned by Meta |
Plain-text response (not JSON). Meta sends hub.mode=subscribe; your server echoes hub.challenge when verify_token matches.