Update Phone Number
Change the agent assigned to a phone number, set or clear the display nickname, or unassign routing without releasing the number.
nickname so the number is easier to identify in dashboard selectors. Only the fields you include are updated, omitted fields keep their current values. This endpoint does not change the underlying carrier configuration, the E.164 number itself, or the monthly billing.
When to use this
- Assigning an agent for the first time after purchasing the number through Buy a Phone Number.
- Switching the inbound agent when handing the number to a different team or workflow.
- Renaming for clarity: set a
nicknameso dashboard users can pick the right number out of a long list. - Detaching routing: pass
agent_id: nullto stop routing inbound calls without releasing the number. Useful while you investigate an issue or while the new agent is being prepared.
Path parameters
Errors
404 Not Foundis returned when the phone number does not exist on this workspace.400 Bad Requestis returned when the suppliedagent_iddoes not exist or is not eligible to be assigned to a number.
Related endpoints
- Get Phone Number: confirm new values.
- Buy a Phone Number: purchase a new number.
- Release a Number: return the number to the provider’s pool.
- Receive Inbound Calls: end-to-end inbound setup guide.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
RSA-encrypted organization_id string (base64 format)
Path Parameters
Body
Country calling code digits only (e.g. "91" for India, "1" for US); stored as VARCHAR(3)
"91"
Phone number assigned to organization (without country code)
1234567890
ID of telephony provider (14-char string)
"prov_xxxxxx"
Status of the phone number
pending, active "active"
Inbound agent ID
"A1B2C3D4E5F6G7"
Outbound agent ID
"B1C2D3E4F5G6H7"
Inbound agent version number
1
Outbound agent version number
2
When true, Speech IO uses SIP trunking (e.g. asterisk) for this number.
Rental start date in YYYY-MM-DD format
"2026-04-07"
Rental end date in YYYY-MM-DD format
"2026-05-07"
Rental lifecycle status for this phone number
active, expired, available_for_reassignment "active"
Human-readable nickname for this phone number
"Sales Line"
Response
Phone number updated.
When true, Speech IO uses SIP trunking (e.g. asterisk) for this number.