Skip to content
Docs

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

ParameterTypeDescription
device_keystringThe device key from your push URL. Not needed when the key is already in the path.
device_keysstring[] or stringSeveral keys, as an array or comma-separated. JSON body on /push only. See Several devices at once.

Content

ParameterTypeDescription
titlestringNotification title.
subtitlestringLine below the title.
bodystringMain text. If you send no title, subtitle, or body, the app shows a placeholder text.
markdownstringBody written in Markdown. The app renders it. The notification shows a plain-text version. When set, body is ignored.
iconURLImage shown as the notification's icon.
imageURLImage attached to the notification.

Grouping and badge

ParameterTypeDescription
groupstringGroups notifications together in Notification Center and in the app's inbox. You can mute a group from the notification or in the app.
badgeintegerSets the app icon badge to this number. 0 clears it.

Urgency and sound

See Levels and sounds for details.

ParameterTypeDescription
levelactive | timeSensitive | passive | criticalHow the notification interrupts you. Default is active.
volumeinteger, 0–10Volume for critical pushes only. Default 5.
soundstringSound name, such as chime or alarm, or one you imported. .caf is added if missing. If omitted, the app's default sound plays.
call1 or voice1: the sound repeats for about 30 seconds. voice: the device also rings like a phone call.
voicestringWith 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.

ParameterTypeDescription
urlURLOpened when you tap the notification. Also adds an Open link button.
copystringText the Copy button copies. Without it, Copy copies the body.
autoCopystringAccepted for compatibility with existing scripts. Its behavior is not guaranteed. Use copy instead.
actionnone | alertnone: tapping opens Opush and doesn't follow url. alert is also accepted.

Custom buttons

Up to two buttons. See Buttons and actions.

ParameterTypeDescription
button1, button2stringButton label, up to 40 characters. Longer labels are cut.
button1_url, button2_urlURLRequired for each button. The link to open, or the request to send.
button1_method, button2_methodGET | POSTOptional. When set, the phone sends this request in the background instead of opening the link.
button1_style, button2_styledestructiveOptional. Shows the button in red.
buttonsobject[]JSON only. An array of { "title", "url", "method", "style" }, converted to the fields above.

Replace, recall, and keep

See Updating and recalling.

ParameterTypeDescription
idstringIdentifies the push. A new push with the same id replaces the old notification (IDs up to 64 bytes).
delete1With id: removes that push from Notification Center and the inbox. Also cancels a scheduled push with the same id.
isArchive11 saves the push in the app's inbox. Any other value doesn't save it. If omitted, the app's setting decides.
ttlinteger (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.

ParameterTypeDescription
atstringWhen 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).
delayinteger (seconds)Deliver after this many seconds. Use either at or delay, not both.
repeathourly | daily | weekdays | weekly | monthlyRepeat the push. weekdays is Monday to Friday.
tzstringIANA 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.

ParameterTypeDescription
ciphertextstringBase64 of your parameters as JSON, encrypted with AES using the key set in the app.
ivstringThe 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.
sealedstringParameters 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.

ParameterTypeDescription
livestart | update | endStart, update, or end the card.
idstringRequired. Ties the updates to one card. Up to 64 bytes.
titlestringCard title. Required on start.
statusstringStatus text, such as "Running tests". body also works.
progressnumber, 0–100Progress bar. Omit to hide it.
staterunning | success | failedDefault running. end without a state means success.
alert1Also 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.

ParameterTypeDescription
sms1Also send a text message to the phone numbers you verified in the app.
phone1Also place a phone call to your verified numbers. It plays a recorded message chosen with voice. Your text is never read aloud.
escalatestringSteps to take until someone acknowledges: any of push, voice, sms, phone, comma-separated. 1 means push,voice,sms,phone.
escalate_afterinteger (minutes), 1–60Time between steps. Default 5.
callback_urlURLWith escalate: Opush POSTs here when the alert is acknowledged.

Text messages and phone calls depend on your plan.