مواد پر جائیں

iOS لائیو سرگرمیوں کے لیے REST API حوالہ

PushWard API لائیو سرگرمیوں، نوٹیفکیشنز، widgets اور ای میل کے لیے ایک REST API ہے۔ PushWard، Apple آلات تک Apple Push Notification service (APNs) کے ذریعے اور Android تک Firebase Cloud Messaging (FCM) کے ذریعے پہنچاتا ہے۔

Base URL

https://api.pushward.app

Authentication

All endpoints (except /health) require a Bearer token in the Authorization header:

Authorization: Bearer hlk_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345

Tokens are hlk_ integration keys created in the iOS app's settings screen — see Authentication for the key format, permissions, and slug-restriction rules.

Activity State Machine

Activities follow a state machine with two client-visible states:

StateDescription
endedInactive (default on creation)
ongoingActive Live Activity running on device

State Transitions

Transitions are triggered via PATCH /activities/{slug}:

FromToPush Action
endedongoingPush-to-start (starts Live Activity)
ongoingongoingPush update (updates content)
ongoingendedPush end (dismisses after 4 hours)
ℹ معلومات

Activities may also enter an internal preempted state when the server evicts the lowest-priority activity to stay under the ongoing limit. Clients cannot set preempted directly — patch the activity back to ongoing to restart it.

Rate limits, quotas, and the eviction rule live on the Limits page.

Endpoints

SectionDescription
AuthenticationToken management and user profile
ActivitiesCreate, list, update, and delete activities
NotificationsSend inbox notifications with optional APNs push delivery
WidgetsCreate, update, and delete Home Screen widgets
EmailSend transactional email to verified recipients