跳到导航

添加转接规则

Add a phone forwarding rule to the named receptionist.

路径参数

agent_idstring必需

接待员 ID。可使用 GET /v1/reception/customer-facing-agents 列出。

请求头

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

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

请求

This endpoint expects an object.
labelstring必需
Name of the transfer destination, e.g. 'Alvin' or 'Billing team'.
phone_numberstring必需
Number to transfer to. Without a country code it is dialed locally in the business's country, so include the country code for a number abroad.
conditionstring必需

触发转接的来电者行为,例如“来电者要求与真人或 Alvin 通话”。仅描述触发条件;不要重复电话号码或“转接”一词。

post_dial_digitsstring or null可选格式: "^[0-9*#wW]*$"1-50 characters

转接目标接听后自动播放的 DTMF 数字(例如,用 ‘1’ 回应“按 1 接听”提示,或暂停后用 ‘www1234’ 输入分机号)。有效字符包括 0-9、*、#、w(暂停 0.5 秒)和 W(暂停 1 秒)。仅适用于 Twilio 转接。

响应

成功响应

labelstring
Name of the transfer destination, e.g. 'Alvin' or 'Billing team'.
phone_numberstring
Number to transfer to. Without a country code it is dialed locally in the business's country, so include the country code for a number abroad.
conditionstring

触发转接的来电者行为,例如“来电者要求与真人或 Alvin 通话”。仅描述触发条件;不要重复电话号码或“转接”一词。

post_dial_digitsstring or null可选格式: "^[0-9*#wW]*$"1-50 characters

转接目标接听后自动播放的 DTMF 数字(例如,用 ‘1’ 回应“按 1 接听”提示,或暂停后用 ‘www1234’ 输入分机号)。有效字符包括 0-9、*、#、w(暂停 0.5 秒)和 W(暂停 1 秒)。仅适用于 Twilio 转接。

idstring可选

转接规则 ID。

created_at_unixinteger可选

转接规则创建时间,以秒为单位的 Unix 时间戳。

错误

422
Unprocessable Entity Error