跳到导航

移动电话号码

Move a phone number to a different receptionist in the same workspace, which answers its calls from then on. Returns 409 phone_number_not_attached for a number no receptionist answers yet (attach it with POST /v1/reception/phone-numbers/assignments).

路径参数

phone_assignment_idstring必需

电话号码分配 ID。分配号码时返回;可使用 GET /v1/reception/phone-numbers/assignments 列出。

请求头

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

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

请求

This endpoint expects an object.
customer_facing_agent_idstring必需

今后接听该号码来电的接待员。

响应

成功响应

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