본문으로 건너뛰기

기본

제목, 본문, 부제목, 그리고 중단 수준(interruption level) — 푸시 알림을 위한 최소 페이로드.

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.
정보

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

기본 알림 보내기
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"
  }'