Assign Phone Number to Agent
Telephony
Assign Phone Number to Agent
Assign a specific phone number to an agent’s call flow, configure recording options, office hours, metadata, and automatically update SIP trunks.
POST
Assign Phone Number to Agent
Path Parameters
The ID of the agent whose call flow will be bound to the phone number.
The ID of the phone number to bind.
Headers
Workspace identifier for the API. Required to scope the binding operation.
Request Body
Whether calls should be recorded. When enabled, updates Twilio trunk recording settings (
Default:
record-from-ringing).Default:
false.Whether recordings are publicly accessible.
Default:
Default:
false.Custom office hours configuration for the phone number (stored with the binding).
Example:
Example:
{ "monday": ["09:00-17:00"], "tuesday": [] }.Arbitrary metadata key/value tags to store with the phone number.
Example:
Example:
{ "department": "sales", "priority": "high" }.Response Fields
The updated agent object, including its bound phone number IDs.
The updated phone number object after binding and SIP trunk configuration.
The ID of the call flow associated with this assignment.
The direction of the call flow (
inbound, outbound, or bidirectional).