# 语音通话明细列表
请求方式:POST
请求地址:https://$basehost/gateway/eaopen/GetVoiceCallRecordList
body参数:
{
"robot_id":"accbTDTOEBMHReE3gCQ4uMW",
"call_id": "60fc2306503845859159f63a338d26a4",
"offset": 0,
"limit": 10
}
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| robot_id | string | 是 | 机器人open id |
| call_id | string | 否 | 请求通话id |
| offset | int | 是 | 每次获取的的开始位置,最小值为0 |
| limit | int | 是 | 每次获取的条数,取值范围(1~100) |
返回值:
{
"data": {
"paginate": {
"offset": 0,
"limit": 10,
"total": 1
},
"list": [
{
"robot_id": "accbTDTOEBMHReE3gCQ4uMW",
"contact_id": "acchT2ewXQ5xjtWkTIh4Kqh",
"customer_service_account": "accuRNmdnmiDrZ9DYdVbql1",
"start_at": 1782119736,
"end_at": 1782119752,
"call_time": 16,
"call_id": "3cc80d6da3b043a2a922496bd6866a1a"
}
]
},
"errcode": 0,
"errmsg": "",
"hint": "mgGc2DuXphi79MAu8GQA"
}
返回说明
| 字段 | 类型 | 说明 |
|---|---|---|
| errcode | int | 状态码,0为正常,非0代表错误 |
| errmsg | string | 错误信息 |
| hint | string | 请求日志ID |
| data | array | 明细结果 |
| paginate | object | 分页信息 |
| offset | int | 每次获取的的开始位置,最小值为0 |
| limit | int | 每次获取的条数,取值范围(1~100) |
| total | int | 总条数 |
| list | array | 明细列表 |
| robot_id | int | 机器人open id |
| contact_id | string | 会话id (私聊为account_id) |
| customer_service_account | string | 客服open id |
| start_at | string | 开始时间 |
| end_at | string | 结束时间 |
| call_time | string | 通话时长(秒) |
| call_id | string | 请求通话id |
完整请求示例:
curl --location --request POST 'http://$basehost/gateway/eaopen/GetVoiceCallRecordList' \
--header 'Token: token' \
--header 'Content-Type: application/json' \
--data-raw '{
"call_id": "3cc80d6da3b043a2a922496bd6866a1a",
"robot_id":"accbTDTOEBMHReE3gCQ4uMW",
"offset":0,
"limit":10
}'