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/v1/telephony/numbers/{id}/assign
Request
- Base URL: https://api.pyai.com
- URL: https://api.pyai.com/v1/telephony/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": "telephony.number",
"id": "pn_...",
"phone_number": "+14155550123",
"country": "US",
"area_code": "415"
}Changes
No recorded changes to this operation across all 1 revision of this API.