Skip to main content
POST
Assign Phone Number to Agent

Path Parameters

string
required
The ID of the agent whose call flow will be bound to the phone number.
string
required
The ID of the phone number to bind.

Headers

string
required
Workspace identifier for the API. Required to scope the binding operation.

Request Body

boolean
Whether calls should be recorded. When enabled, updates Twilio trunk recording settings (record-from-ringing).
Default: false.
boolean
Whether recordings are publicly accessible.
Default: false.
object
Custom office hours configuration for the phone number (stored with the binding).
Example: { "monday": ["09:00-17:00"], "tuesday": [] }.
object
Arbitrary metadata key/value tags to store with the phone number.
Example: { "department": "sales", "priority": "high" }.

Response Fields

object
The updated agent object, including its bound phone number IDs.
object
The updated phone number object after binding and SIP trunk configuration.
string
The ID of the call flow associated with this assignment.
string
The direction of the call flow (inbound, outbound, or bidirectional).