SnozeDevelopers
API referenceNotifications

Register a device for push notifications

Stores the caller's Expo push token for an installation and activates it, first revoking any other active row holding the same installation id or token so a device can move between accounts. Naturally idempotent: re-registering the same installation refreshes the existing row rather than adding one. Requires a Clerk session with a synced profile, and the token must be a well-formed Expo push token.

PUT
/v1/me/push-devices
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/me/push-devices" \  -H "Content-Type: application/json" \  -d '{    "installationId": "7a1bf939-4d70-4439-9ced-a3dbbce12bd7",    "token": "string",    "platform": "ios",    "appId": "string",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "installationId": "7a1bf939-4d70-4439-9ced-a3dbbce12bd7",    "platform": "ios",    "appId": "string",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",    "tokenFingerprint": "string",    "registeredAt": "string"  }}