Quickstart
Install Opush, copy your push URL, and send your first push in a few minutes.
Opush gives every device a private push URL. Anything that can make an HTTP request (a shell script, a CI job, a cron task, a monitoring tool) can send a notification to your phone with that URL.
This guide takes you from zero to your first push.
Install the app
Opush is coming soon to the App Store (iPhone and Apple Watch) and Google Play (Android).
Not in the stores yet
The apps are not published yet. This page will link to the App Store and Google Play as soon as they are live.
Open Opush and allow notifications
When you open the app for the first time, it registers your device and asks for permission to show notifications. Tap Allow. Opush can't deliver pushes without it.
The app then sends a test push, so you can check that notifications arrive.
Copy your push URL
Open the Receive tab. Under Your push URL you'll see something like this:
https://opu.sh/YOUR_KEYYOUR_KEY is a 22-character key that points to this device. Copy the whole URL.
Keep it private
Anyone with this URL can send pushes to your device. If it leaks, create a new key in the app. The old URL stops working right away.
Send your first push
Paste your URL into a terminal and add a title and a body as path segments:
curl https://opu.sh/YOUR_KEY/Hello/My%20first%20pushYour phone shows a notification with the title "Hello" and the body "My first push". The server replies with:
{ "code": 200, "message": "success", "timestamp": 1793546000 }Other ways to send the same push
Path segments are the shortest form. When your text gets longer or you need more options, use query parameters or JSON.
Query parameters. Good for adding options to a simple URL:
curl "https://opu.sh/YOUR_KEY?title=Backup%20done&body=42%20GB%20in%2012%20minutes&group=backup"POST JSON. Best for scripts. No URL encoding needed:
curl -X POST https://opu.sh/push \
-H "Content-Type: application/json" \
-d '{
"device_key": "YOUR_KEY",
"title": "Deploy finished",
"body": "api v1.4.2 is live",
"url": "https://example.com/deploys/142"
}'Encode your text in URLs
In path segments and query strings, encode spaces and special characters (%20 for a space). Most HTTP libraries do this for you. With JSON you don't need to think about it.
Add it to a script
A common pattern is to send a push when a long job ends:
#!/bin/sh
OPUSH="https://opu.sh/YOUR_KEY"
if ./backup.sh; then
curl -s "$OPUSH/Backup/Finished?group=backup" > /dev/null
else
curl -s "$OPUSH/Backup/Failed?group=backup&level=timeSensitive" > /dev/null
filevel=timeSensitive lets the failure break through Focus modes. See Levels and sounds.
Already have push scripts?
Opush uses the common /{key}/{title}/{body} push URL format, with the usual parameter names. Scripts and tools that already send pushes this way only need the new server and key. See Sending pushes.