Skip to content

Pushplus Notifications

Overview

PushPlus is a Chinese notification platform that delivers messages via WeChat and several other channels (email, SMS, WeCom, webhook). It uses a personal token to authenticate requests.

  1. Register or sign in at PushPlus.
  2. Copy the Token shown on your dashboard under the “Push” section.
  3. Optionally install the PushPlus mini-program in WeChat to receive messages on your phone.

Your notification URL for the simplest use case is:

pushplus://{token}

PushPlus also supports sending a single notification to everyone subscribed to a named group.

  1. Open the Group Push section of the PushPlus console.
  2. Create a group and note its group code. This is the topic value.
  3. Subscribers join the group inside WeChat; when you send to the topic all members receive the message.

Place one or more group codes directly in the URL path:

pushplus://{token}/{topic}
pushplus://{token}/{topic1}/{topic2}
pushplus://{token}/#{topic}

When multiple topics are listed Apprise sends the notification to each group in a separate API call. The # in front of a topic is optional.

You can also send to the PushPlus friends you have added. Put each friend’s token in the URL path with an @ in front of it. On the cp (WeCom) channel, use the WeCom user ID instead.

pushplus://{token}/@{friend_token}
pushplus://{token}/@{friend1}/@{friend2}

Apprise sends to up to 10 friends in one API call, which is the PushPlus limit for a verified account.

By default notifications arrive via WeChat. You can redirect them to a different channel using the ?channel= (or its synonym ?mode=) query parameter:

?channel= value Channel
wechat WeChat (default, may be omitted)
webhook Configured webhook endpoint
app PushPlus mobile app
extension Browser extension or desktop app
clawbot WeChat ClawBot
cmcc ClawBot for China Mobile users
qq QQ bot
cp WeCom (WeChat Work / Enterprise WeChat)
wecom Friendly alias for cp, same channel
mail Email address on file
sms SMS (paid by PushPlus points)
voice Voice call (paid by PushPlus points)
pushplus://{token}?channel=mail
pushplus://{token}/{topic}?channel=cp

channel= and mode= are fully interchangeable; use whichever reads more naturally in your configuration.

To deliver through several channels at once, list them separated by commas. Apprise then sends one request to PushPlus’s multi-channel endpoint:

pushplus://{token}?channel=wechat,mail

Apprise also accepts wecom:// as a schema prefix for WeCom users. It automatically sets the delivery channel to cp, so no extra query parameter is needed:

Schema Equivalent to
wecom://{token} pushplus://{token}?channel=cp

When using ?channel=webhook you can also target a specific named endpoint. Two equivalent forms are accepted:

pushplus://{token}?channel=webhook&name={webhook_name}
pushplus://{webhook_name}@{token}

In the second form (schema://{name}@{token}) the webhook channel is implied – you do not need to add ?channel=webhook explicitly. An explicit ?channel= always overrides the implication if you need a different channel alongside a user@ name.

The cp, webhook, mail and qq channels can use a configuration code that you create under the channel settings in the PushPlus console. Pass it with ?option=. The webhook name above is the same setting, so ?name= and ?webhook= work too.

pushplus://{token}?channel=mail&option={code}

When you list several channels, give one code per channel in the same order, separated by commas. Leave a spot empty for a channel that needs no code. In this example only the webhook gets a code:

pushplus://{token}?channel=wechat,webhook&option=,{code}

PushPlus can post the final delivery result to a web address of your own. Set it with ?callback= (PushPlus’s own name, ?callbackUrl=, works too).

pushplus://{token}?callback={url}

The message body is rendered by PushPlus on their servers using a template that matches the standard Apprise format parameter:

Apprise ?format= PushPlus renders as
html (default) HTML: bold, links, and images work
markdown Markdown: headings, bold, lists, etc.
text Plain text, no formatting

There is no separate PushPlus-specific parameter for these; set ?format=markdown (or the equivalent in your YAML/config) the same way you would for any other Apprise service.

PushPlus also has a few special templates that ?format= cannot pick. Set one with ?template=:

?template= value PushPlus renders as
json The body shown as JSON
cloudMonitor Alibaba Cloud Monitor alert layout
jenkins Jenkins build layout
route Router plugin layout
pay Payment received layout

Valid syntax is as follows:

  • https://www.pushplus.plus/send?token={token}
  • https://www.pushplus.plus/send/{token}
  • https://www.pushplus.plus/batchSend?token={token}
  • pushplus://{token}
  • pushplus://{token}/{topic}
  • pushplus://{token}/{topic1}/{topic2}
  • pushplus://{token}/#{topic}
  • pushplus://{token}/@{friend_token}
  • pushplus://{token}/@{friend1}/@{friend2}
  • pushplus://{token}?channel={channel}
  • pushplus://{token}?channel={channel1},{channel2}
  • pushplus://{token}/{topic}?channel={channel}
  • pushplus://{token}?channel=webhook&name={webhook_name}
  • pushplus://{webhook_name}@{token}
  • pushplus://{token}?channel={channel}&option={code}
  • pushplus://{token}?template={template}
  • pushplus://{token}?callback={url}
  • wecom://{token}
Variable Required Description
token *Yes Your personal PushPlus token from the dashboard. May also be supplied as ?token=.
topic No Group code placed in the URL path, with an optional # in front. Multiple topics may appear; one API call is made per topic. May also be supplied as ?topic= or ?to=.
channel No Delivery channel. One or more of wechat (default), app, extension, webhook, clawbot, cmcc, qq, cp, wecom, mail, sms, voice, separated by commas. Supplied as ?channel= or its alias ?mode=.
friend_token No A PushPlus friend’s token, placed in the URL path with an @ in front (a WeCom user ID on the cp channel). Up to 10 friends are sent per API call. May also be supplied as ?to=.
option No Channel configuration code from the PushPlus channel settings, used by the cp, webhook, mail and qq channels. With several channels, give one code per channel in the same order, separated by commas. ?name= and ?webhook= are the same setting. The user@ form pushplus://{name}@{token} also sets it and implies channel=webhook.
template No A special PushPlus template: json, cloudMonitor, jenkins, route or pay. Use ?format= for HTML, Markdown or plain text.
callback No A web address PushPlus posts the final delivery result to. ?callbackUrl= also works.
Variable Description
overflow Controls messages that exceed a service’s documented limit. The default is upstream.
👉 upstream: Send one message without splitting or truncating it for that limit.
👉 truncate: Keep the portion that fits and discard the rest.
👉 split: Prefer a readable break, fall back to a hard boundary, and send every part in order.
Splitting undeclared or structured content is best effort. Use upstream when the body must remain one intact document.
format This parameter can be set to either text, html, or markdown. Some services support the ability to post content by several different means. The default of this varies (it can be one of the 3 mentioned at any time depending on which service you choose). You can optionally force this setting to stray from the defaults if you wish. If the service doesn’t support different types of transmission formats, then this field is ignored.
verify External requests made to secure locations (such as through the use of https) will have certificates associated with them. By default, Apprise will verify that these certificates are valid; if they are not then no notification will be sent to the source. In some occasions, a user might not have a certificate authority to verify the key against or they trust the source; in this case you will want to set this flag to no. By default it is set to yes.
redirect By default, Apprise will follow HTTP redirects (3xx responses) issued by the remote server, matching the behaviour of the underlying requests library. If you want to prevent custom headers and credentials from being forwarded to destinations that differ from the original URL, set this to no. By default it is set to yes.
cto This stands for Socket Connect Timeout. This is the number of seconds Requests will wait for your client to establish a connection to a remote machine (corresponding to the connect()) call on the socket. The default value is 4.0 seconds.
rto This stands for Socket Read Timeout. This is the number of seconds the client will wait for the server to send a response. The default value is 4.0 seconds.
emojis Enable Emoji support (such as providing :+1: would translate to 👍). By default this is set to no.
Note: Depending on server side settings, the administrator has the power to disable emoji support at a global level; but default this is not the case.
tz Identify the IANA Time Zone Database you wish to operate as. By default this is detected based on the configuration the server hosting Apprise is running on. You can set this to things like America/Toronto, or any other properly formated Timezone describing your area.
retry The number of additional delivery attempts to make after the first failure before giving up. Accepts an integer in the range 0 to 10. The default is 0 (no retries – a single attempt is made). When combined with wait, Apprise pauses the specified number of seconds between each attempt.
wait The number of seconds to pause between retry attempts. Accepts a decimal value in the range 0.0 to 20.0; integer values are promoted to float automatically. The default is 0.5. This value is only meaningful when retry is greater than zero – a service with retry=0 makes exactly one attempt regardless of the wait value.
optional When set to yes, a delivery failure for this service is silently absorbed. The overall notify() call still evaluates as true even if this endpoint was unreachable, provided that every required (non-optional) service in the same batch succeeded. Setting this flag does not skip delivery or bypass retry logic – all configured retry attempts are still made before the failure is absorbed. By default this is set to no, meaning every failure is propagated to the caller.

Apprise provides two related WeCom/WeChat integrations:

  • WeChat (WeCom) – sends directly to WeCom users, departments, and tags using the WeCom Application Message API; requires a CorpID, App Secret, and AgentID from your WeCom admin console.
  • WeCom Bot – sends to a WeCom group chat via a webhook key; simpler to set up but delivers to a group rather than individual users or departments.

Send a simple personal notification:

Terminal window
apprise -vv -t "Title" -b "Hello from Apprise" \
pushplus://abc123def456ghi789jkl012mno345pq

Send a Markdown-formatted message:

Terminal window
apprise -vv -t "Alert" -b "## Warning\n\nSomething happened." \
"pushplus://abc123def456ghi789jkl012mno345pq?format=markdown"

Send to a group (topic):

Terminal window
apprise -vv -t "Team Alert" -b "Deployment complete." \
pushplus://abc123def456ghi789jkl012mno345pq/myteamgroup

Send to two groups at once (one API call per group):

Terminal window
apprise -vv -t "Broadcast" -b "System maintenance in 30 minutes." \
pushplus://abc123def456ghi789jkl012mno345pq/ops-team/dev-team

Deliver via email:

Terminal window
apprise -vv -t "Title" -b "Email body" \
"pushplus://abc123def456ghi789jkl012mno345pq?channel=mail"

Send to a group and deliver via email:

Terminal window
apprise -vv -t "Title" -b "Group email" \
"pushplus://abc123def456ghi789jkl012mno345pq/myteamgroup?channel=mail"

Deliver through WeChat and email at the same time:

Terminal window
apprise -vv -t "Title" -b "Hello" \
"pushplus://abc123def456ghi789jkl012mno345pq?channel=wechat,mail"

Send to two friends:

Terminal window
apprise -vv -t "Title" -b "Hello friends" \
"pushplus://abc123def456ghi789jkl012mno345pq/@friendtoken1/@friendtoken2"

Deliver via email using a configuration code:

Terminal window
apprise -vv -t "Title" -b "Email body" \
"pushplus://abc123def456ghi789jkl012mno345pq?channel=mail&option=mymail"

Deliver via a named webhook endpoint (long form):

Terminal window
apprise -vv -t "Title" -b "Webhook payload" \
"pushplus://abc123def456ghi789jkl012mno345pq?channel=webhook&name=myhook"

Deliver via a named webhook endpoint (compact form – channel implied):

Terminal window
apprise -vv -t "Title" -b "Webhook payload" \
"pushplus://myhook@abc123def456ghi789jkl012mno345pq"

Use the WeCom schema alias (equivalent to ?channel=cp):

Terminal window
apprise -vv -t "Title" -b "WeCom message" \
wecom://abc123def456ghi789jkl012mno345pq

Use the native PushPlus API URL directly:

Terminal window
apprise -vv -t "Title" -b "Hello" \
"https://www.pushplus.plus/send?token=abc123def456ghi789jkl012mno345pq"
Questions or Feedback?

Documentation

Notice a typo or an error?

Technical Issues

Having trouble with the code? Open an issue on GitHub:

Made with love from Canada