# 获取客户/机器人的接待客服账号

请求方式:POST

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

body参数

{
  "open_robot_id": "accdjNhGg3YN1Wo9aT3Glwf",
  "open_account_id": "acclHd06cGfPhZSlkm5Zupw"
}
字段 类型 必填 说明
open_robot_id string 机器人id
open_account_id string 客户企微id

限频说明:

1. 每个主体每10秒只能调用一次该接口;

返回值:

{
	"data": {
		"user_list": [
			{
				"customer_service_account": "test1",
				"customer_service_open_id": "accxdfd8djdfg7s",
				"customer_service_name": "张三"
			},
			{
				"customer_service_account": "test2",
				"customer_service_open_id": "accxdfd8djdfgxdg",
				"customer_service_name": "李四"
			}
		]
	},
	"errcode": 0,
	"errmsg": "",
	"hint": "xxxx"
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data.user_name_list list [废弃]接待的客服名列表(有资产的情况下可能有多个客服可以接待)
data.user_list list 接待的客服列表(有资产的情况下可能有多个客服可以接待)
data.user_list.customer_service_account list 客服登录账号
data.user_list.customer_service_open_id list 客服id
data.user_list.customer_service_name list 客服名称
hint string 请求日志ID

完整请求示例:

curl --location --request POST 'http://$basehost/gateway//eaopen/GetCustomerServiceListForAccount' \
--header 'Token: token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "open_robot_id": "accdjNhGg3YN1Wo9aT3Glwf",
    "open_account_id": "acclHd06cGfPhZSlkm5Zupw"
}'
最后更新时间: 2024/4/10 11:56:18