Register push subscription
Register a new Web Push subscription for the current user. If the endpoint already exists, it will be updated with the new keys. Requires user authentication.
Register a new Web Push subscription for the current user. If the endpoint already exists, it will be updated with the new keys. Requires user authentication.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/push-subscriptions" \ -H "Content-Type: application/json" \ -d '{ "endpoint": "http://example.com", "keys": { "p256dh": "string", "auth": "string" } }'{ "success": true}Register this device's Expo push token PUT
Binds an Expo push token to the calling device credential. Repeating the current token writes nothing, and a token held by another credential moves here. Signing out, credential expiry, membership removal and password changes end it; there is no separate unregister call. Requires the native device credential.
Unregister push subscription DELETE
Remove a push subscription by its endpoint URL. Only subscriptions belonging to the current user will be removed. Requires user authentication.