Skip to content
Docs

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

MethodPathNotes
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/pushdevice_key or device_keys in the body
GET POST/c/{push_key} and the same three path formsPush 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

ValueMeaning
successSent to the push service
scheduledSaved to send later (at, delay, or repeat)
queued: the Live Activity is starting on the deviceA progress card update was saved until the card is ready

data

data only appears when there is something to report.

FieldWhenContents
data.id, data.fire_at, data.repeatScheduled pushThe schedule ID (sch_…), the next send time, and the repeat rule or null
data.callcall=voice{ "placed": true, "call_id": "…" }, or { "placed": false, "reason": "…" } with not_enabled, group, rate_limited, or push_failed
data.smssms=1{ "sent": 1 }, or { "sent": 0, "skipped": "…" } with not_configured, no_numbers, quota, rate_limited, duplicate, or failed
data.phonephone=1Same shape as data.sms
data.escalationescalateSee 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.

StatusExample messageWhat to do
400failed to get device token: device key not foundCheck the key. It may have been changed in the app.
400request bind failed: invalid JSON, invalid type for device_keysFix the body
400batch push count exceeds the maximum limit: …Send fewer keys per request
400Invalid buttons, schedule, live, or escalate valuesRead message and fix the parameter
401UnauthorizedEnterprise server with Basic Auth: add the credentials
403account suspendedThe account was suspended. Contact support
403This device already has … scheduled pushes. Cancel one first.Cancel a schedule first
404not foundThe key isn't 22 letters and digits. Copy the push URL again
413payload too large: APNs allows 4096 bytesShorten the text, or link to details with url
429too many pushesWait for Retry-After seconds. When your plan's daily pushes are used up, that can be until midnight UTC
500push failed: …Try again later
503device is unreachable: APNs token expired, open the app to refresh itOpen Opush on that device
503server is busy, try again laterWait 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.