Skip to navigation

List Phone Numbers

List the workspace’s phone numbers and the receptionist each one rings. A number with no customer_facing_agent_id is held by the workspace but not attached to a receptionist yet.

Headers

xi-api-keystringOptional
xi-workspace-idstringRequired
The customer workspace a reseller's API key acts on.

Response

Successful Response
idstring
The phone number assignment's ID.
is_activebooleanRead-only

Whether the number is active; false during the 14 days before a deactivated number is released.

accepts_public_callsbooleanRead-only
Whether inbound calls from the public may reach the receptionist.
phone_numberstring or nullOptional
Phone number in E.164 format.
is_byobooleanOptionalDefaults to false

True when the phone is bring-your-own: registered by the workspace using their own telephony provider (Twilio credentials or SIP trunk). BYO phones are never part of the shared pool, do not count against the plan’s phone number limit, and are deleted (rather than returned to the pool) on release.

providerenumOptionalDefaults to twilio
Telephony provider for this phone number.
Allowed values:
nanp_area_codeintegerOptionalDefaults to 0

US/Canada NANP area code (NPA) as an integer.

customer_facing_agent_idstring or nullOptional
The receptionist that answers this number. Null when the workspace holds the number but no receptionist answers it yet.
deactivated_at_unixinteger or nullOptional

Unix timestamp when this number was deactivated; it is released 14 days later. Null when active.

deactivation_reasonenum or nullOptional
Why this number was deactivated. Null when active.
Allowed values:
regulatory_statusenum or nullOptional

Null for numbers that need no paperwork. held while the workspace’s own application is under review, approved once it passed and the number is fully usable.

Allowed values:
regulatory_number_typeenum or nullOptional
The regulated number type this number was issued as. Null for numbers that need no paperwork.
Allowed values:
regulatory_countrystring or nullOptional
ISO country the regulated number was issued in. Null for numbers that need no paperwork.
created_at_unixintegerOptional
When this was created, as a Unix timestamp in seconds.
updated_at_unixintegerOptional
When this was last updated, as a Unix timestamp in seconds.

Errors

422
Unprocessable Entity Error