小组级接收消息回调
POST
https://aa-hub.ddregion.com
💡
请求参数
Body 参数application/json
data
object
必需
messageId
string
消息id
chatId
string
对话id(表示一个bot和一个客户)
avatar
string
客户或者群头像
roomTopic
string
群名
roomId
string
群聊的系统wxid
contactName
string
客户姓名
contactId
string
客户的系统wxid
payload
消息内容
type
enum<number>
消息的payload
枚举值:
012345678910111213151699991000010001
timestamp
string
消息时间戳
token
string
小组级token
botId
string
bot的账号id
contactType
enum<number>
客户的类型
枚举值:
0123
coworker
boolean
是否为内部员工
botWxid
string
托管账号对应成员的系统wxid
botWeixin
string
bot的企业微信userId
source
enum<number>
消息来源,具体来源信息参考下面的枚举定义
枚举值:
01234567
sendBy
string
消息发送者的秒回id,仅当消息为消息为托管账号发送的,且消息来源为小组级控制台手动发消息时有效
isSelf
boolean
消息是否是托管账号自己发送的消息
mentionSelf
boolean
当前消息是否@了托管账号
externalUserId
string
客户的企业微信externalUserId
roomWecomChatId
string
群的企微chatId
示例
{
"orgId": "string",
"token": "string",
"botId": "string",
"imBotId": "string",
"botUserId": "string",
"chatId": "string",
"avatar": "string",
"coworker": true,
"imContactId": "string",
"imRoomId": "string",
"roomWecomChatId": "string",
"roomTopic": "string",
"messageId": "string",
"isSelf": true,
"sendBy": "string",
"source": 0,
"externalUserId": "string",
"contactName": "string",
"contactType": 0,
"messageType": 0,
"payload": {
"content": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://aa-hub.ddregion.com' \
--header 'Content-Type: application/json' \
--data-raw '{
"orgId": "string",
"token": "string",
"botId": "string",
"imBotId": "string",
"botUserId": "string",
"chatId": "string",
"avatar": "string",
"coworker": true,
"imContactId": "string",
"imRoomId": "string",
"roomWecomChatId": "string",
"roomTopic": "string",
"messageId": "string",
"isSelf": true,
"sendBy": "string",
"source": 0,
"externalUserId": "string",
"contactName": "string",
"contactType": 0,
"messageType": 0,
"payload": {
"content": "string"
}
}'
返回响应
🟢200成功
application/json
Body
errcode
number
返回码
errmsg
string
对返回码的文本描述内容
示例
{
"errcode": 0,
"errmsg": "string"
}
修改于 2025-02-06 06:17:42