发送消息接口
POST
https://www.pushplus.plus/send
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
token
string
必需
title
string
消息标题
content
string
必需
topic
string
可选
template
string
发送模板
channel
string
发送渠道
webhook
string
webhook编码
callbackUrl
string
发送结果回调地址
timestamp
string
可选
to
string
可选
pre
string
可选
示例
{
"token": "be8652e98bd04139a13e1bffcd6d0f71",
"title": "标题",
"content": "消息内容",
"topic": "code",
"template": "html"
}
示例代码
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://www.pushplus.plus/send' \
--header 'Content-Type: application/json' \
--data-raw '{
"token":"be8652e98bd04139a13e1bffcd6d0f71",
"title":"标题",
"content":"消息内容",
"topic":"code",
"template":"html"
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
msg
string
响应说明
data
string
响应数据
示例
{
"code": 200,
"msg": "请求成功",
"data": "075074e3c17e449e9a0cb79cc6f3fc83"
}