WhatsApp
Route a WhatsApp number to an agent
Bind (or unbind with agent_id: null) the Omni agent that answers inbound WhatsApp calls to this number and is the default for outbound calls from it. Requires the telephony:manage scope.
post/v1/whatsapp/numbers/{id}/assign
Request
- Base URL: https://api.pyai.com
- URL: https://api.pyai.com/v1/whatsapp/numbers/{id}/assign
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Path parameters
idstring required
Request body
Response
Updated
Example response
{
"object": "whatsapp.number",
"id": "wan_...",
"phone_number": "+14155550123"
}Changes
No recorded changes to this operation across all 2 revisions of this API.