Register this device's Expo push token
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.
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.
Authorization
bearerAuth Versioned GuideLab native-device credential (gl_device_v1_*) issued by POST /auth/device/v1/sign-in; Better Auth browser session tokens are cookie-only.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://example.com/push-subscriptions/native" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'{ "success": true}List push subscriptions GET
List all registered push subscriptions for the current user. Requires user authentication.
Register push subscription POST
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.