API referencePush
Forget a device
Idempotent: an unknown endpoint is also a 204.
POST
Sends a real request with your token. Prefer a read-only token; it is kept in this browser's storage.
Idempotent: an unknown endpoint is also a 204.
header
AuthorizationBearer <token>A personal access token (rsk_…) or a Supabase access token.
application/json- body
endpoint*stringLength
1 <= length <= 2048Removed
curl -X POST 'https://www.ressource.social/api/v1/push-subscriptions/unsubscribe' \ -H 'Content-Type: application/json' \ -d '{ "endpoint": "string"}'Empty
Whether the caller (or one device) is subscribed GET
Previous Page
Register (or refresh) a device for web push PUT
The body is the browser's `PushSubscription.toJSON()`. Idempotent on the endpoint, which must be https on a known push service (FCM, Mozilla, Apple, WNS) resolving to public addresses — anything else is 400 `push_endpoint_not_allowed`. The device's user agent is read from the request. Past the device limit, a new device is 429.