Push notification API

Send a push notification to your phone with one HTTP request

One HTTP POST to PushPiper puts a push notification on your phone, free for 10,000 messages a month on 10 devices. Each message holds up to 1,024 characters and each app token can make 600 requests a minute. Get your keys, install the web app and post to the endpoint.

Set up your phone and get your keys

Getting everything ready takes about a minute, and there's no credit card required and nothing to buy in an app store.

  1. Head over to PushPiper and sign up free by signing in with your Google account.
  2. Allow notifications when your browser prompts you. If you're on an iPhone or iPad running iOS 16.4 or later, open pushpiper.com/app in Safari, tap Share, and tap Add to Home Screen.
  3. Create an application inside the dashboard to generate your app token (a 30-character string that starts with an a).
  4. Copy your user key (a 30-character string that starts with a u) from your main account screen.

If you want to test on desktop too, open the app in Chrome, Edge, Firefox, or Safari on Windows, macOS, or Linux and click allow.

Send your first push notification

You send notifications by making an HTTP POST request to https://api.pushpiper.com/1/messages.json. The endpoint accepts standard form-encoded fields, multipart data, or flat JSON where values are strings, numbers, or booleans.

Here's how to send a test message from your terminal using curl:

curl
curl -s https://api.pushpiper.com/1/messages.json \
  --form-string "token=APP_TOKEN" \
  --form-string "user=USER_KEY" \
  --form-string "title=Backup" \
  --form-string "message=Nightly backup finished"

Before you run that command, replace APP_TOKEN with the 30-character token you got when creating your application, and replace USER_KEY with your personal user key. You can swap out the title and message strings for whatever text you want.

When the request succeeds, the API returns a JSON object containing "status": 1 and a unique request identifier. If a parameter is missing or malformed, you'll receive an HTTP 400 status with a list of errors describing what went wrong.

If you are already running scripts or monitoring tools built for Pushover, you don't need to rewrite your delivery logic. PushPiper's API paths, parameters, receipts, and responses match Pushover's specification, so you can migrate from Pushover simply by changing the API host from api.pushover.net to api.pushpiper.com and plugging in your PushPiper tokens.

Code examples in Python, JavaScript, and PowerShell

Most scripts need to send alerts from inside an existing programming environment rather than a raw shell command. Here are three tested patterns for common scripting languages.

Python

The standard requests library handles the POST call cleanly with a dictionary payload:

Python
import requests

response = requests.post(
    "https://api.pushpiper.com/1/messages.json",
    data={
        "token": "APP_TOKEN",
        "user": "USER_KEY",
        "title": "Backup",
        "message": "Nightly backup finished",
    },
    timeout=10,
)
response.raise_for_status()

Change APP_TOKEN and USER_KEY to match your dashboard values. The timeout parameter ensures your background scripts won't hang forever if your network connection drops.

Node.js

Modern Node.js runtimes support the global fetch API out of the box, using URLSearchParams to format the request body:

Node.js
const response = await fetch('https://api.pushpiper.com/1/messages.json', {
  method: 'POST',
  body: new URLSearchParams({
    token: 'APP_TOKEN',
    user: 'USER_KEY',
    title: 'Backup',
    message: 'Nightly backup finished',
  }),
})

if (!response.ok) throw new Error(await response.text())

Replace APP_TOKEN and USER_KEY with your credentials. If the endpoint answers with an error status, the snippet throws an error containing the server's response text.

PowerShell

On Windows machines or cross-platform PowerShell sessions, Invoke-RestMethod posts the payload as a hashtable:

PowerShell
Invoke-RestMethod -Method Post -Uri "https://api.pushpiper.com/1/messages.json" -Body @{
  token   = "APP_TOKEN"
  user    = "USER_KEY"
  title   = "Backup"
  message = "Nightly backup finished"
}

Update APP_TOKEN and USER_KEY with your real keys. PowerShell handles the JSON parsing of the API response automatically.

Message parameters and limits

PushPiper gives you several optional parameters to control how an alert displays, what sound it plays, and whether it links out to an external dashboard.

The following table compares each accepted message parameter against its function and size limit.

ParameterWhat it doesLimit
tokenYour app's token30 characters
userUser or group key, up to 50 comma-separated30 characters each
messageThe text1,024 characters
titleBold first line250 characters
url and url_titleA link button512 and 100 characters
priority-2 silent to 2 emergency2 needs retry and expire
soundAlert sound23 built-in sounds
attachmentOne file5 MB

Keep these platform limits in mind when wiring up your payloads:

  • Messages must not exceed 1,024 characters; longer bodies are rejected with an HTTP 400 error rather than truncated, so trim any dynamic string output beforehand.
  • Titles hold up to 250 characters and appear as a bold header on the alert.
  • Applications can send up to 600 requests a minute.
  • A single send can target up to 50 user keys separated by commas, or you can supply a group key to deliver to up to 500 users at once.
  • The attachment parameter takes one file up to 5 MB, including images, PDFs, plain text, audio, and MP4 files.

If you need a complete breakdown of headers, responses, and encryption payloads, consult the PushPiper API reference.

Notification priorities and emergency alerts

The priority field changes how aggressively PushPiper alerts your device.

PushPiper supports five distinct priority levels:

  • -2 (Lowest): No alert banner or sound is created; the message simply appears in your inbox next time you open the app.
  • -1 (Low): Sends a silent notification without playing a chime or vibrating your phone.
  • 0 (Normal): Standard alert that triggers sounds and vibrations, but respects the quiet hours you configure inside the PushPiper app.
  • 1 (High): Bypasses PushPiper quiet hours so you don't miss important operational warnings.
  • 2 (Emergency): High-urgency alert designed for critical incidents that repeats until a recipient acknowledges it.

Emergency alerts require two additional integer parameters: retry and expire. The retry parameter specifies how many seconds to wait between notification chimes (minimum 30 seconds), while expire defines the total lifetime of the alert in seconds (maximum 10,800 seconds, or 3 hours). The alert repeats until someone taps acknowledge in the app, the expiration window closes, or it reaches 50 total retries.

When an emergency notification fires, the API response returns a receipt identifier. You can poll https://api.pushpiper.com/1/receipts/RECEIPT.json?token=APP_TOKEN up to once every 5 seconds to inspect whether the message was acknowledged and by whom, or configure a callback URL to receive an automated POST when a user dismisses the alarm.

If you are automating recurring checks or background scripts on a server, take a look at our guide on shell scripts and cron jobs to see how to pair failure exits with high-priority notifications.

Sources

    Questions and answers

    Does PushPiper have a native app in the App Store or Google Play?

    No, PushPiper runs as a web app installed directly from your browser using standard Web Push. On Android, Chrome, Edge, and desktop Safari you simply accept notification permissions, while on iOS 16.4 or later you open pushpiper.com/app in Safari and tap Add to Home Screen.

    Can PushPiper wake me up through iPhone Do Not Disturb or Focus mode?

    No, PushPiper cannot bypass iOS Do Not Disturb or Focus settings. PushPiper's priority 1 and priority 2 settings ignore the quiet hours schedule you set inside PushPiper itself, but Apple does not allow web push notifications to trigger critical alerts.

    What happens when I use all 10,000 free messages?

    When your account reaches the monthly quota, the API rejects further requests with an HTTP 429 status code until your limit resets on the 1st of the month at 00:00 UTC. If you need more volume before then, you can upgrade to a paid plan or purchase extra packs of 10,000 messages for 20 euros.

    Can I send an alert to multiple people at once?

    Yes, you can pass up to 50 user keys separated by commas in the user parameter, or create a group in your dashboard that holds up to 500 members and supply the group key instead. Each recipient counts as one message toward your monthly account quota.

    Free for 10,000 messages a month

    Sign in with Google and send your first ping in a minute.

    Get started for free