# 结束语音通话

【提示】在通话中的会话进行挂断后,如果出现没有推送语音通话状态回调,且state=4时需调用此接口

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/VoiceFinish

body参数

{
    "call_id": "60fc2306503845859159f63a338d26a4",
    "robot_id":"accbTDTOEBMHReE3gCQ4uMW",
    "contact_id":"acchT2ewXQ5xjtWkTIh4Kqh",
    "customer_service_open_id":"accuRNmdnmiDrZ9DYdVbql1",
    "customer_service_account_device":"d7400da3-526f-4551-aac5-e766ec07913e"
}
字段 类型 必填 说明
call_id string 请求通话id
robot_id string 机器人open id
contact_id string 会话id (私聊为account_id)
customer_service_open_id string 客服open id
customer_service_account_device string 唯一设备(浏览器指纹)

返回值:

{
    "errcode": 0,
    "errmsg": "",
    "hint": "RNRdEhKXphi7XZRuyqAA"
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
hint string 请求日志ID

完整请求示例:

curl --location --request POST 'http://$basehost/gateway/eaopen/VoiceFinish' \
--header 'Token: token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "call_id": "6f77dd22378e46aeb8660a0d9890e192",
    "robot_id":"accbTDTOEBMHReE3gCQ4uMW",
    "contact_id":"acchT2ewXQ5xjtWkTIh4Kqh",
    "customer_service_open_id":"accuRNmdnmiDrZ9DYdVbql1",
    "customer_service_account_device":"d7400da3-526f-4551-aac5-e766ec07913e"
}'
最后更新时间: 2026/6/23 19:48:41