Push endpoints
Every URL form and method for sending a push, batch sends, channel pushes, and all response fields.
This page lists the push endpoints and what they return. For the parameters themselves (title, level, sound, buttons, scheduling, and more), see Parameters. For a guided introduction, see Send a push.
Endpoints
| Method | Path | Notes |
|---|---|---|
GET POST | /{device_key} | All parameters in the query or body |
GET POST | /{device_key}/{body} | |
GET POST | /{device_key}/{title}/{body} | |
GET POST | /{device_key}/{title}/{subtitle}/{body} | |
POST | /push | device_key or device_keys in the body |
GET POST | /c/{push_key} and the same three path forms | Push to a team channel |
The device key is 22 letters and digits. Path segments must be URL-encoded.
When the same parameter appears in more than one place, the path wins over the query string, and the query string wins over the body.
# Path
curl "https://opu.sh/YOUR_KEY/Backup%20done/42%20GB%20in%2012%20minutes"
# Query
curl "https://opu.sh/YOUR_KEY?title=Backup%20done&group=backups&level=passive"
# JSON
curl -X POST https://opu.sh/push \
-H "Content-Type: application/json" \
-d '{"device_key":"YOUR_KEY","title":"Backup done","body":"42 GB in 12 minutes"}'Enterprise servers with a path prefix also accept POST /push at the root of the host, because Apprise can't add a prefix.
Batch push
Send the same push to several devices with device_keys in a JSON body to /push. It can be an array or a comma-separated string. Other content types can't carry device_keys.
curl -X POST https://opu.sh/push \
-H "Content-Type: application/json" \
-d '{"device_keys":["KEY_ONE","KEY_TWO"],"title":"Release v2.0 is out"}'There's a maximum number of keys per request. Above it, the whole request fails with 400 and a message that states the limit.
A batch always returns 200. Each device has its own result in data. Entries can also carry schedule, call, sms, phone, and escalation, with the same contents described below:
{
"code": 200,
"message": "success",
"timestamp": 1793546000,
"data": [
{ "code": 200, "device_key": "KEY_ONE" },
{ "code": 503, "device_key": "KEY_TWO", "message": "device is unreachable: APNs token expired, open the app to refresh it" }
]
}Responses
A successful push returns 200 in the push response format:
{ "code": 200, "message": "success", "timestamp": 1793546000 }message
| Value | Meaning |
|---|---|
success | Sent to the push service |
scheduled | Saved to send later (at, delay, or repeat) |
queued: the Live Activity is starting on the device | A progress card update was saved until the card is ready |
data
data only appears when there is something to report.
| Field | When | Contents |
|---|---|---|
data.id, data.fire_at, data.repeat | Scheduled push | The schedule ID (sch_…), the next send time, and the repeat rule or null |
data.call | call=voice | { "placed": true, "call_id": "…" }, or { "placed": false, "reason": "…" } with not_enabled, group, rate_limited, or push_failed |
data.sms | sms=1 | { "sent": 1 }, or { "sent": 0, "skipped": "…" } with not_configured, no_numbers, quota, rate_limited, duplicate, or failed |
data.phone | phone=1 | Same shape as data.sms |
data.escalation | escalate | See below |
For a scheduled push, data is the schedule itself:
{
"code": 200,
"message": "scheduled",
"timestamp": 1793546000,
"data": { "id": "sch_…", "fire_at": "2026-11-05T01:50:00Z", "repeat": "weekdays" }
}With escalate:
{
"code": 200,
"message": "success",
"timestamp": 1793546000,
"data": {
"escalation": {
"alert_id": "al_…",
"steps": ["push", "voice", "sms", "phone"],
"every_minutes": 5,
"next_at": "2026-11-04T09:35:00Z",
"status_url": "https://opu.sh/alerts/al_…",
"callback_secret": "ocs_…"
}
}
}callback_secret is only there when you passed callback_url. Use status_url with the alerts API.
Channel pushes
A push to /c/{push_key} goes to every member who hasn't muted the channel. data counts the deliveries:
{ "channel": "Ops", "devices": 4, "sent": 4, "failed": 0 }With oncall=1, the push goes only to the person on call, and data also has on_call (account_id, name, until) escalation when you used escalate, and call, sms and phone like a personal push. A channel without a rotation returns 400. Channels don't support scheduling yet: at, delay, and repeat return 400. See On-call.
Errors
Errors use the same format, with message explaining what went wrong.
| Status | Example message | What to do |
|---|---|---|
400 | failed to get device token: device key not found | Check the key. It may have been changed in the app. |
400 | request bind failed: invalid JSON, invalid type for device_keys | Fix the body |
400 | batch push count exceeds the maximum limit: … | Send fewer keys per request |
400 | Invalid buttons, schedule, live, or escalate values | Read message and fix the parameter |
401 | Unauthorized | Enterprise server with Basic Auth: add the credentials |
403 | account suspended | The account was suspended. Contact support |
403 | This device already has … scheduled pushes. Cancel one first. | Cancel a schedule first |
404 | not found | The key isn't 22 letters and digits. Copy the push URL again |
413 | payload too large: APNs allows 4096 bytes | Shorten the text, or link to details with url |
429 | too many pushes | Wait for Retry-After seconds. When your plan's daily pushes are used up, that can be until midnight UTC |
500 | push failed: … | Try again later |
503 | device is unreachable: APNs token expired, open the app to refresh it | Open Opush on that device |
503 | server is busy, try again later | Wait for Retry-After seconds |
Recalling a push with delete=1 and an id also cancels a pending schedule and an escalating alert with that id. See Update and recall.