POST https://qw-scrm-tx.dustess.com/go-im-center/open_service/callback/{event_type}/{appid}
Content-Type: application/json| 请求参数名 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| msg_id | string | 消息ID | true |
| chat_id | string | 会话ID | true |
| chat_type | int32 | 会话类型。0 单聊 1 群聊 | true |
| chat_status | int32 | 会话状态。1 人工服务 2 AI托管 | true |
| sender_id | string | 消息发送者ID | true |
| sender_type | int32 | 发送者类型。0 客服/员工,1 客户,2 AI附身客服/员工 | true |
| send_time | int64 | 发送时间戳,单位:ms | true |
| msg_type | int32 | 消息类型。0 文本,1 图片,2 语音,3 文件,4 视频,7 位置,9 链接 | |
| true | |||
| content | string | 文本消息内容 | false |
| file_url | int32 | 资源地址。图片、语音、文件、视频类型消息需要 | false |
| location | object | 地理位置 | false |
| location.name | string | 位置名称 | false |
| location.address | string | 详细地址 | false |
| location.latitude | float32 | 维度 | false |
| location.longitude | float32 | 经度 | false |
| link | object | 链接 | false |
| link.title | string | 标题 | false |
| link.desc | string | 描述 | false |
| link.url | string | 链接地址 | false |
| link.thumb_url | string | 封面图 | false |
json - Request-Example: {
"msg_id": "from_msgid_4622416642169452483",
"chat_id": "chat_xxxx",
"chat_type": 0,
"chat_status": 1,
"sender_id": "wmAJ2GCAAAme1XQRC-NI-q0_ZM9ukoAw",
"sender_type": 0,
"send_time": 1615478585000,
"msg_type": 0,
"content": "文本消息",
"file_url": "http://xxx.png",
"location": {
"name": "测试地址",
"address": "测试地址",
"latitude": 0,
"longitude": 0
},
"link": {
"title": "标题",
"desc": "描述",
"url": "https://www.xxx.com", // 链接地址
"thumb_url": "https://xxx.png" // 封面图
}
}
| 响应参数名 | 类型 | 说明 |
|---|---|---|
| code | int32 | 响应码 |
| msg | string | 消息提示 |
{
"code": 0,
"msg": "success"
} {
"code": 4126,
"msg": "",
}