Parameters
Every parameter you can send with a push, grouped by what it does.
All parameters work the same way in path segments, the query string, form data, and JSON. Names are not case-sensitive. In forms and query strings every value is a string. In JSON you can also use numbers and booleans: true and false count as 1 and 0, and a number id is treated as text.
Who receives it
| Parameter | Type | Description |
|---|---|---|
device_key | string | The device key from your push URL. Not needed when the key is already in the path. |
device_keys | string[] or string | Several keys, as an array or comma-separated. JSON body on /push only. See Several devices at once. |
Content
| Parameter | Type | Description |
|---|---|---|
title | string | Notification title. |
subtitle | string | Line below the title. |
body | string | Main text. If you send no title, subtitle, or body, the app shows a placeholder text. |
markdown | string | Body written in Markdown. The app renders it. The notification shows a plain-text version. When set, body is ignored. |
icon | URL | Image shown as the notification's icon. |
image | URL | Image attached to the notification. |
Grouping and badge
| Parameter | Type | Description |
|---|---|---|
group | string | Groups notifications together in Notification Center and in the app's inbox. You can mute a group from the notification or in the app. |
badge | integer | Sets the app icon badge to this number. 0 clears it. |
Urgency and sound
See Levels and sounds for details.
| Parameter | Type | Description |
|---|---|---|
level | active | timeSensitive | passive | critical | How the notification interrupts you. Default is active. |
volume | integer, 0–10 | Volume for critical pushes only. Default 5. |
sound | string | Sound name, such as chime or alarm, or one you imported. .caf is added if missing. If omitted, the app's default sound plays. |
call | 1 or voice | 1: the sound repeats for about 30 seconds. voice: the device also rings like a phone call. |
voice | string | With call=voice or phone=1, which recorded message plays: alert (default), down, recovered, failed, done, security. |
Tap and copy
See Buttons and actions for examples.
| Parameter | Type | Description |
|---|---|---|
url | URL | Opened when you tap the notification. Also adds an Open link button. |
copy | string | Text the Copy button copies. Without it, Copy copies the body. |
autoCopy | string | Accepted for compatibility with existing scripts. Its behavior is not guaranteed. Use copy instead. |
action | none | alert | none: tapping opens Opush and doesn't follow url. alert is also accepted. |
Custom buttons
Up to two buttons. See Buttons and actions.
| Parameter | Type | Description |
|---|---|---|
button1, button2 | string | Button label, up to 40 characters. Longer labels are cut. |
button1_url, button2_url | URL | Required for each button. The link to open, or the request to send. |
button1_method, button2_method | GET | POST | Optional. When set, the phone sends this request in the background instead of opening the link. |
button1_style, button2_style | destructive | Optional. Shows the button in red. |
buttons | object[] | JSON only. An array of { "title", "url", "method", "style" }, converted to the fields above. |
Replace, recall, and keep
| Parameter | Type | Description |
|---|---|---|
id | string | Identifies the push. A new push with the same id replaces the old notification (IDs up to 64 bytes). |
delete | 1 | With id: removes that push from Notification Center and the inbox. Also cancels a scheduled push with the same id. |
isArchive | 1 | 1 saves the push in the app's inbox. Any other value doesn't save it. If omitted, the app's setting decides. |
ttl | integer (seconds) | How long to keep the push. After it expires, the app removes it from the inbox and from Notification Center. See Updating and recalling. |
Scheduling
Send now, deliver later. When any of these is present, the response message is scheduled. See Scheduled and repeating pushes.
| Parameter | Type | Description |
|---|---|---|
at | string | When to deliver: Unix seconds, ISO 8601 with a time zone (2026-12-01T09:00:00+08:00), local time without a zone (2026-12-01T09:00), or just a time (09:00: today if it's still ahead, otherwise tomorrow). |
delay | integer (seconds) | Deliver after this many seconds. Use either at or delay, not both. |
repeat | hourly | daily | weekdays | weekly | monthly | Repeat the push. weekdays is Monday to Friday. |
tz | string | IANA time zone, such as Asia/Taipei. Defaults to the device's time zone. |
# Every weekday at 09:50
curl "https://opu.sh/YOUR_KEY/Standup/Starts%20in%2010%20minutes?at=09:50&repeat=weekdays&id=standup"
# In one hour
curl "https://opu.sh/YOUR_KEY/Drink%20water?delay=3600&id=water"
# Cancel it
curl "https://opu.sh/YOUR_KEY?id=water&delete=1"You can schedule up to one year ahead. A time more than a minute in the past returns 400. Scheduling again with the same id replaces the old schedule.
Encryption
Opush servers forward encrypted content without reading it. See Encryption.
| Parameter | Type | Description |
|---|---|---|
ciphertext | string | Base64 of your parameters as JSON, encrypted with AES using the key set in the app. |
iv | string | The IV for AES-GCM or AES-CBC. If omitted, the IV saved in the app is used. Use a new random IV for every push. |
sealed | string | Parameters encrypted to the device's public key (HPKE). Only the device can open it. |
Keep device_key, level, volume, id, and delete outside the encrypted part. The server needs them to deliver the push.
Task progress card
Show a live progress card for a long job, such as a deploy or a backup. On iPhone it appears on the Lock Screen and in the Dynamic Island. All updates must use the same id. See Live progress.
| Parameter | Type | Description |
|---|---|---|
live | start | update | end | Start, update, or end the card. |
id | string | Required. Ties the updates to one card. Up to 64 bytes. |
title | string | Card title. Required on start. |
status | string | Status text, such as "Running tests". body also works. |
progress | number, 0–100 | Progress bar. Omit to hide it. |
state | running | success | failed | Default running. end without a state means success. |
alert | 1 | Also alert on this update. Starting a card and failed always alert. |
curl "https://opu.sh/YOUR_KEY/Deploy%20api/Building?live=start&id=deploy-7&progress=10"
curl "https://opu.sh/YOUR_KEY?live=update&id=deploy-7&progress=60&status=Uploading"
curl "https://opu.sh/YOUR_KEY?live=end&id=deploy-7&status=Done"Fields you leave out keep their last value. Progress cards can't be encrypted.
Urgent alerts
For problems that must not be missed.
| Parameter | Type | Description |
|---|---|---|
sms | 1 | Also send a text message to the phone numbers you verified in the app. |
phone | 1 | Also place a phone call to your verified numbers. It plays a recorded message chosen with voice. Your text is never read aloud. |
escalate | string | Steps to take until someone acknowledges: any of push, voice, sms, phone, comma-separated. 1 means push,voice,sms,phone. |
escalate_after | integer (minutes), 1–60 | Time between steps. Default 5. |
callback_url | URL | With escalate: Opush POSTs here when the alert is acknowledged. |
Text messages and phone calls depend on your plan.