GuideLab Docs

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.

PUT
/push-subscriptions/native

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
AuthorizationBearer <token>

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}
Empty
Empty
Empty