列出电话号码
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-key
xi-workspace-id
经销商 API 密钥操作的客户工作区。
响应
成功响应
id
电话号码分配 ID。
is_active
号码是否启用;已停用号码在释放前的 14 天内为 false。
accepts_public_calls
公众呼入电话是否可以转接至接待员。
phone_number
Phone number in E.164 format.
is_byo
电话为自带号码时为 true:工作区通过自己的电话服务提供商(Twilio 凭据或 SIP 中继)注册。BYO 电话永不属于共享号码池,不计入套餐的电话号码上限,并会在释放时删除而非归还至号码池。
provider
此电话号码的电话服务提供商。
允许的值:
nanp_area_code
美国/加拿大 NANP 区号(NPA),为整数。
customer_facing_agent_id
接听此号码来电的接待员。工作区持有该号码但尚无接待员接听时为 null。
deactivated_at_unix
此号码停用时的 Unix 时间戳;14 天后将释放。处于活跃状态时为 null。
deactivation_reason
该号码被停用的原因。启用时为 Null。
允许的值:
regulatory_status
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_type
该号码签发时所属的受监管号码类型。无需提交材料的号码为 null。
允许的值:
regulatory_country
ISO country the regulated number was issued in. Null for numbers that need no paperwork.
created_at_unix
创建时间,以秒为单位的 Unix 时间戳。
updated_at_unix
上次更新时间,以秒为单位的 Unix 时间戳。
错误
422
Unprocessable Entity Error