Skip to content

Basics

Title, body, subtitle, and interruption level — the minimum payload for a push notification.

Lock screen notification showing title, subtitle, and body
PushWard app detail view of the notification, showing title, subtitle, and body

Fields

FieldTypeRequiredDescription
titlestringYesNotification title shown in bold on the banner and lock screen
bodystringYesBody text shown under the title
subtitlestringNoOptional subtitle shown between the title and body
levelstringNoInterruption level. One of passive, active (default), or time-sensitive. Controls iOS interruption behavior.
pushbooleanNoIf true (default), sends an APNs push to all of the user's devices. Set false to store in the inbox only.

Interruption levels

LevelBehavior
passiveSilent — no sound, no banner, no vibration. Lands directly in Notification Center.
activeDefault behavior — banner, sound, lock screen.
time-sensitiveBypasses Focus modes (other than Do Not Disturb) and stays on the lock screen for an hour. Use sparingly — Apple may rate-limit apps that overuse it.
Info

By default, every notification is delivered as an APNs push to the user's devices. Set push: false to store it in the inbox only.

Example

Send a basic notification
curl -X POST https://api.pushward.app/notifications \
  -H "Authorization: Bearer hlk_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Hello from PushWard",
    "subtitle": "Your first notification",
    "body": "This is a basic push notification.",
    "level": "active"
  }'