Skip to main content
POST
Route a WhatsApp number to an agent

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Path Parameters

id
string
required

Body

application/json
agent_id
string | null

Agent to bind, or null to unassign.

Response

Updated

object
string
Example:

"whatsapp.number"

id
string
Example:

"wan_..."

waba_id
string

WhatsApp Business Account id.

phone_number_id
string

Meta's id for the business number (what the webhook carries).

phone_number
string

E.164.

Example:

"+14155550123"

app_id
string | null
agent_id
string | null

Agent that answers inbound WhatsApp calls.

calling_enabled
boolean
calling_settings
object

Last calling settings pushed to Meta.

status
enum<string>
Available options:
active,
released
created_at
integer

Unix ms.

updated_at
integer

Unix ms.

released_at
integer | null

Unix ms.