SnozeDevelopers
API referenceNotifications

Revoke a device's push registration

Marks the caller's active registration for one installation revoked so it stops receiving push notifications, and reports whether a row was actually revoked. Naturally idempotent: a second call reports `revoked: false`. Requires a Clerk session with a synced profile.

POST
/v1/me/push-devices/revoke

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Request Body

application/json
  1. body
installationId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/me/push-devices/revoke' \  -H 'Content-Type: application/json' \  -d '{  "installationId": "7a1bf939-4d70-4439-9ced-a3dbbce12bd7"}'
Example Response
{  "data": {    "installationId": "7a1bf939-4d70-4439-9ced-a3dbbce12bd7",    "revoked": true  }}