- 语聚AI应用助手API使用说明
- 语聚GPT API
- 对话助手 API
- 外部联系人API
- 知识助手 API
- 通用功能API
- AI营销
发送消息给指定用户
POST
/v1/openapi/send-to-user
请求参数
Query 参数
apiKey
string
必需
Body 参数application/json
user_id
string
用户id
bot_id
string
助手id
content
string
发送内容
示例
{
"user_id": "pc1265_fm2403sv",
"bot_id": "7e3cf67e7b82439c848ff1ab97a7706d",
"content": "你好啊"
}
示例代码
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://chat.jijyun.cn/v1/openapi/send-to-user?apiKey=' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id":"pc1265_fm2403sv",
"bot_id":"7e3cf67e7b82439c848ff1ab97a7706d",
"content":"你好啊"
}'
返回响应
🟢200成功
application/json
Body
Code
integer
状态码
Msg
string
返回信息
Data
object
必需
ActionStatus
string
发送状态
ErrorCode
integer
错误码
ErrorInfo
string
错误信息
MsgKey
string
消息key
MsgTime
integer
消息发送时间
示例
{
"Code": 2000,
"Data": {
"ActionStatus": "OK",
"ErrorCode": 0,
"ErrorInfo": "",
"MsgKey": "1034473438_4079732_1691638130",
"MsgTime": 1691638130
},
"Msg": "成功"
}
🟠401没有权限
🟠402API请求次数不足
修改于 2024-09-12 06:52:54