Phone Numbers
Webhook Subscribe
Route inbound messages on this number to a webhook. Drops any connected agent.
POST
cURL
Sets the number’s default routing to
Sandbox numbers (shared system numbers with no WhatsApp Business Account)
scope the change to the requesting user’s own conversation; the shared
defaults are not touched and
webhook and assigns defaultWebhook to the
given webhook. Any agent previously connected to the number is dropped — call
POST /phone-numbers/{number}/connect-agent/
to put one back.
When applyToExisting is true, every existing conversation on this number is
updated so the new routing takes effect for in-flight chats: activeAgent is
cleared and any open session is dropped. Phone-number routing changes do not
fire subscription.activated / subscription.revoked webhook events — those
are reserved for the per-conversation
subscribe /
unsubscribe endpoints.
Webhooks themselves must be created in the dashboard.
There is no API for webhook creation.
applyToExisting is ignored.Authorizations
API key authentication. Pass your API key in the X-API-Key header.
Path Parameters
Body
application/json
Response
200 - application/json
Serializer for WhatsappNumber model.
Maximum string length:
15cURL