POST https://qw-openapi-tx.dustess.com/ai/v1/agent/getExternalId?accessToken=
Content-Type: application/json渠道和ID 对应关系: ecom:企微明文external_userid rpa:scrm的external_userid 微信客服:unionid 在线客服:访客id
| 请求参数名 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| chatID | int64 | 会话ID,消息事件中的chat_id | true |
| talkerID | int64 | 消息发送者ID,消息事件中的talker_id,仅支持发送者类型为客户 | true |
json - Request-Example:{
"chat_id": 45683588312388888,
"talker_id": 456835883115479040
}| 响应参数名 | 类型 | 说明 |
|---|---|---|
| code | int32 | 响应码 |
| msg | string | 消息提示 |
| success | string | 是否成功请求 |
| traceId | string | 请求链路id |
| data.originContactId | string | 渠道对应的客户id |
| data.originGroupId | string | 渠道对应的群id(仅群聊返回) |
{
"code": 0,
"msg": "OK",
"success": true,
"data": {
"originContactId":"xxxxxx",
"originGroupId": "yyyyyyy"
},
"traceId": "1601ca8f-1ee0-9725-81ba-d49016bc1a34"
}{
"code": 20170303,
"msg": "会话不存在",
"success": false,
"data": {},
"traceId": "88146ad5-ac5f-9758-9ebb-0f13eb8ae973"
}