Skip to main content
POST
Register the signed-in user's mobile device for push notifications

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Body

application/json
device_id
string
required
Pattern: ^[A-Za-z0-9_-]{16,64}$
platform
enum<string>
required
Available options:
ios,
android
token
string
required

APNs or FCM token.

p256dh
string
required

Uncompressed P-256 public key, base64url.

auth
string
required

16-byte secret, base64url.

environment
enum<string>

APNs environment. Required on iOS, refused on Android.

Available options:
production,
development
topic
string

APNs topic (the app bundle id). iOS only.

Response

Device registered.