# 获取客服工作台发送的私聊消息的接待客服
请求方式:POST
请求地址:https://$basehost/gateway/eaopen/GetCustomerServiceListByMsgIdList
body参数:
{
"robot_id": "accxdfdddkll133j",
"msg_id_list": [
"1049793"
]
}
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| robot_id | string | 是 | 机器人open id |
| msg_id_list | array | 是 | 客服工作台发送的私聊消息id列表,一次最大获取100条消息 |
限频说明:
1. [已经解除限制]每个主体每分钟只能调用一次该接口,建议合并多条消息一次查询;
返回值:
{
"data": {
"msg_id_user_map": {
"1049793": "kefu123456"
},
"info_list": [
{
"msg_id": "1086245",
"robot_id": "accxdfdddkll133j",
"robot_name": "测试组专用",
"user_name": "李四",
"customer_service_account": "aaaaaaaaaaa",
"customer_service_open_id": "accxdfd8djdfg7s",
"chat_obj_type": 1,
"chat_obj_id": "accxxxdd"
}
]
},
"errcode": 0,
"errmsg": "",
"hint": "xxxx"
}
返回说明
| 字段 | 类型 | 说明 |
|---|---|---|
| errcode | int | 状态码,0为正常,非0代表错误 |
| errmsg | string | 错误信息 |
| data.msg_id_user_map | dict | 消息对应的客服名 |
| data.info_list | list | 详情列表 |
| data.info_list.msg_id | string | 消息ID |
| data.info_list.robot_id | string | 机器人ID |
| data.info_list.chat_obj_id | string | 聊天对象ID |
| data.info_list.chat_obj_type | int | 1:私聊 2:群聊 |
| data.info_list.robot_name | string | 机器人名称 |
| data.info_list.user_name | string | 客服名称 |
| data.info_list.customer_service_account | string | 客服登录账号 |
| data.info_list.customer_service_open_id | string | 客服id |
| hint | string | 请求日志ID |
完整请求示例:
curl --location --request POST 'http://$basehost/gateway//eaopen/GetCustomerServiceListByMsgIdList' \
--header 'Token: xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"msg_id_list": ["1049793"]
}'
← 获取客户/机器人的接待客服账号 关闭会话 →