跳到导航

列出电话号码

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.

请求头

xi-api-keystring可选
xi-workspace-idstring必需

经销商 API 密钥操作的客户工作区。

响应

成功响应

idstring

电话号码分配 ID。

is_activeboolean只读

号码是否启用;已停用号码在释放前的 14 天内为 false。

accepts_public_callsboolean只读

公众呼入电话是否可以转接至接待员。

phone_numberstring or null可选
Phone number in E.164 format.
is_byoboolean可选默认为 false

电话为自带号码时为 true:工作区通过自己的电话服务提供商(Twilio 凭据或 SIP 中继)注册。BYO 电话永不属于共享号码池,不计入套餐的电话号码上限,并会在释放时删除而非归还至号码池。

providerenum可选默认为 twilio

此电话号码的电话服务提供商。

允许的值:
nanp_area_codeinteger可选默认为 0

美国/加拿大 NANP 区号(NPA),为整数。

customer_facing_agent_idstring or null可选

接听此号码来电的接待员。工作区持有该号码但尚无接待员接听时为 null。

deactivated_at_unixinteger or null可选

此号码停用时的 Unix 时间戳;14 天后将释放。处于活跃状态时为 null。

deactivation_reasonenum or null可选

该号码被停用的原因。启用时为 Null。

允许的值:
regulatory_statusenum or null可选

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.

允许的值:
regulatory_number_typeenum or null可选

该号码签发时所属的受监管号码类型。无需提交材料的号码为 null。

允许的值:
regulatory_countrystring or null可选
ISO country the regulated number was issued in. Null for numbers that need no paperwork.
created_at_unixinteger可选

创建时间,以秒为单位的 Unix 时间戳。

updated_at_unixinteger可选

上次更新时间,以秒为单位的 Unix 时间戳。

错误

422
Unprocessable Entity Error