Route a number to an agent
Telephony
Route a number to an agent
Bind the number to an agent_id (or pass null to unassign) so inbound calls open that agent’s Omni session. Requires the telephony:manage scope.
POST
Route a number to an agent
Authorizations
Use Authorization: Bearer pyai_live_... (or pyai_test_...).
Path Parameters
Body
application/json
Agent to bind, or null to unassign.
Response
Updated
Example:
"telephony.number"
Example:
"pn_..."
E.164.
Example:
"+14155550123"
Example:
"US"
Example:
"415"
Agent that answers inbound calls to this number.
Carrier-side recording — always false; calls are recorded in PyAI's media bridge.
Available options:
active, released Unix ms.
Unix ms.