-----
Message RulesLeaking your token allows others to send messages on behalf of your account!
Both Message Tokens and the User Token can be used to send messages
Token Name | Expiration Time | Status | Actions |
|---|
For more options, see the Message API docs and the online API tester
curl "https://www.pushplus.plus/send?token=${_token_}&title=XXX&content=XXX&template=html&to=XXX"curl -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d '{
"token": "${_token_}",
"title": "XXX",
"content": "XXX",
"template": "html",
"to": "XXX"
}'curl -X PUT "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d '{
"token": "${_token_}",
"title": "XXX",
"content": "XXX",
"template": "html",
"to": "XXX"
}'curl -X DELETE "https://www.pushplus.plus/send?token=${_token_}&title=XXX&content=XXX&template=html&to=XXX"Parameter | Required | Default | Description |
|---|---|---|---|
| token | Yes | None | User token or Message Token. For GET/DELETE requests it can also be appended to the URL, e.g. https://www.pushplus.plus/send/{token}?content=XXX |
| title | No | None | Message title |
| content | Yes | None | Message body. Supported formats depend on the template. Use POST/PUT for long content |
| template | No | html | Message template |
| to | No | None | Friend token for the WeChat Official Account channel, or WeCom user ID for the WeCom channel. Separate multiple recipients with commas |
| channel | No | Delivery channel | |
| option | No | None | Channel configuration parameter (formerly the webhook parameter) |
| callbackUrl | No | None | Callback URL that receives the delivery result asynchronously |
| timestamp | No | None | Timestamp in milliseconds. Messages with a timestamp earlier than the current time will not be sent |
| pre | No | None | Preprocessing code. Members only. You need to add Preprocessing code in your account center first. |
| pushId | No | None | push Form/Doc/Sheet. Required when template=form (pass the form code, formCode), template=doc (pass the doc code, docCode) or template=excel (pass the sheet code, docCode) |
Send an email to your dedicated address ${_token_}@yp9.cn to trigger a pushplus message. The email subject becomes the message title and the email body becomes the message content. Specify One-to-Many or Friend Message recipients via CC.
Field | Description |
|---|---|
| To | token@yp9.cn, where token is your user token or a Message Token |
| One-to-One Message | Fill in only the recipient with no CC to push to yourself |
| One-to-Many Message | Add GroupCode@yp9.cn to CC; multiple addresses supported |
| Friend Message | Add FriendToken@yp9.cn to CC; multiple addresses supported |
| Subject | Maps to the message title |
| Body | Maps to the message content |
| Channel | Uses the token's default delivery channel; a Message Token sends through its own channel configuration |
Template | Description | Guide |
|---|---|---|
| html | HTML content. Used by default when empty | |
| txt | Plain text; HTML is not escaped, use \n for line breaks | |
| json | Renders JSON content in a readable view | |
| markdown | Renders content as Markdown | |
| cloudMonitor | Custom template for Alibaba Cloud Monitor alerts | Alibaba Cloud Monitor |
| jenkins | Custom template for the Jenkins plugin | Jenkins plugin |
| route | Custom template for router plugins | Router plugin |
| pay | Payment success notification template | Payment template guide |
| form | push Form template | push Form |
| doc | push Doc template | push Doc |
| excel | push Sheet template | push Sheet |
Channel | Free | Description | Guide |
|---|---|---|---|
| Free | WeChat Official Account, the default channel | ||
| app | Free | App; supports Android, HarmonyOS and iOS | App channel guide |
| extension | Free | Extension; supports browser extensions and the desktop app | Browser extension channel setup Desktop app guide |
| webhook | Free | Third-party webhook services: WeCom bots, DingTalk bots, Feishu bots | Webhook channel setup |
| clawbot | Free | WeChat ClawBot | ClawBot channel guide |
| cmcc | Free | New Message ClawBot, China Mobile users only, delivered as SMS | New Message ClawBot channel guide |
| Free | QQ bot, supports both the official bot and your own bots. Without option, the message goes to yourself via the default bot; pass a channel configuration code in option to target a specific bot or QQ group | QQ channel guide | |
| cp | Free | WeCom app | WeCom app setup |
| Free | Email channel guide | ||
| sms | Paid | SMS; paid, 10 Points per message | SMS channel setup |
| voice | Paid | Voice call; paid, 30 Points per call | Voice channel setup |
Code | Description |
|---|---|
| 200 | Success |
| 302 | Not logged in |
| 401 | Unauthorized request (check whether the Open API feature is enabled) |
| 403 | Request IP not authorized (check whether the IP has been added to the Open API allowlist) |
| 500 | System error, please try again later |
| 600 | Data error, operation failed |
| 805 | No permission to view |
| 888 | Insufficient Points, please top up |
| 900 | Account restricted (too many requests, stop sending requests) |
| 905 | Real-name Verification not completed (you can send messages once verified) |
| 903 | Invalid user token (the token used to send the message is incorrect) |
| 999 | Server-side validation error (see the response for details) |