Node-RED push notifications
Node-RED can send push notifications to your phone through PushPiper with no third-party nodes, free for 10,000 messages a month on 10 devices. A function node builds the payload and an HTTP request node posts it, with up to 1,024 characters per message and 600 requests a minute per app token.
How the two-node flow works
Many automations rely on external community palette nodes for messaging, but you don't need extra packages to get reliable alerts out of your flows. Built-in core nodes can build and dispatch your alerts without adding dependencies to your runtime.
PushPiper accepts flat JSON payloads over HTTPS, matching the endpoint format used by Pushover. If you're looking for a Pushover alternative or planning to migrate from Pushover, this integration uses the identical parameter structure and return codes.
The pipeline requires two steps:
- A function node formats your incoming topic and payload into the fields PushPiper expects.
- An http request node posts that data directly to the messages endpoint.
When you pass a JavaScript object into the http request node, Node-RED converts it to JSON and applies the proper headers automatically. You don't need a separate JSON parser node in between.
Get your PushPiper keys
Before assembling your nodes, you need an application token and your user key.
- Open the PushPiper web app in any modern browser and sign in with Google.
- Install the web app on your devices. On Android, Windows, macOS, or Linux, use Chrome, Edge, Firefox, or Safari. On iPhone or iPad running iOS 16.4 or later, open the site in Safari, tap Share, and select Add to Home Screen.
- Copy your 30-character user key. It begins with the letter
u. - Create an application for your Node-RED instance to generate a 30-character application token starting with
a.
The free account covers 10,000 messages every month across up to 10 devices without a credit card.
Configure the function and HTTP nodes
To set up your alert flow, drag an inject node, a function node, an http request node, and a debug node onto your workspace. Connect them in a single chain.
Open the function node, give it a name like Build Alert, and paste the following code:
msg.payload = {
token: 'APP_TOKEN',
user: 'USER_KEY',
title: 'Node-RED',
message: String(msg.payload).slice(0, 1024),
};
return msg;In the code above, replace APP_TOKEN with your 30-character application token and USER_KEY with your 30-character user key. The message field converts incoming payload values to a string and trims the text to 1,024 characters.
Double-click the http request node to configure the network call. Because msg.payload is an object, Node-RED sets the Content-Type header to application/json automatically.
The table below compares the configuration settings required for each node in the chain.
| Node | Setting | Value |
|---|---|---|
| function | Code | Builds msg.payload |
| http request | Method | POST |
| http request | URL | https://api.pushpiper.com/1/messages.json |
| http request | Return | a parsed JSON object |
Deploy the flow and click the inject button to trigger a test alert.
Priority levels, alert sounds, and custom links
You can pass optional parameters inside the object in your function node as documented in the PushPiper API reference.
PushPiper supports five numeric priority tiers:
-2: Lowest priority, which places the message directly in your inbox without waking the screen or buzzing.-1: Low priority, which delivers a quiet notification banner without sound or vibration.0: Normal priority, which plays an alert chime but respects your device's quiet hours.1: High priority, which plays audio and alerts you immediately while ignoring quiet hours.2: Emergency priority, which repeats at set intervals until acknowledged.
Emergency priority requires two additional fields: retry set to at least 30 seconds and expire set up to 10,800 seconds (3 hours). Keep in mind that PushPiper delivers via Web Push, so no priority setting can break through iOS Focus or Do Not Disturb modes.
To pick an alert chime, assign the sound field one of 23 built-in names, such as siren, cashregister, bugle, pushover, or none. You can also attach a web link by including url (up to 512 characters) along with an optional link title in url_title (up to 100 characters).
Here is how you can set priority, sound, and a dashboard link inside your function node:
- Add
msg.payload.priority = 1;to make an alert bypass your normal quiet hours. - Add
msg.payload.sound = 'siren';to change the audio chime from the default tone. - Add
msg.payload.url = 'https://example.com/dashboard';to attach a clickable link to the banner.
Inspecting API responses and limits
Attach a debug node to the output of the http request node to inspect the API reply in msg.payload.
When a message delivers properly, the API returns an HTTP 200 status code with a JSON response: {"status": 1, "request": "..."}. When sending emergency alerts with priority 2, the JSON response also provides a unique receipt string you can poll to verify who acknowledged the notification.
If an alert fails to arrive, check the debug tab for error indicators:
- HTTP 400 means a field was missing, a text field exceeded character limits, or the payload included nested objects instead of flat values.
- HTTP 429 means your account used up its monthly notification limit, which resets automatically on the 1st of each month at 00:00 UTC.
Each app token allows up to 600 requests per minute. If you send an alert to a group key rather than a single user key, every member of that group counts as an individual message against your monthly allowance.
Sources
Questions and answers
Can PushPiper send SMS text messages or place phone calls from Node-RED?
No. PushPiper delivers push notifications to browsers and devices via Web Push. It does not send SMS messages or place automated voice phone calls.
Does PushPiper have a native mobile app in Google Play or the App Store?
No. PushPiper runs as a web app installed directly from your browser. On iOS devices, you install it by opening Safari and selecting Add to Home Screen.
Can an emergency notification break through Do Not Disturb on an iPhone?
No. PushPiper priority 2 alerts will repeat until acknowledged, but Web Push cannot bypass iOS Focus or Do Not Disturb settings.
What happens if an automation flow exceeds the monthly message limit?
The PushPiper API will reject additional requests with an HTTP 429 status code. Quotas reset on the 1st day of the month at 00:00 UTC, or you can purchase extra message packs.
Can I attach images or files to notifications sent from Node-RED?
Yes. PushPiper supports single file attachments up to 5 MB, including images, audio, text, and PDF files, though sending files requires multipart form data rather than a flat JSON payload.