GuideLab API

Update current user phone number

Updates the authenticated user's phone number. Validates and stores in E.164 format. Pass an empty string to remove.

PUT
/user/phone

Updates the authenticated user's phone number. Validates and stores in E.164 format. Pass an empty string to remove.

Authorization

__Secure-guidelab-prod.session_token<token>

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 PUT "https://example.com/user/phone" \  -H "Content-Type: application/json" \  -d '{    "phoneNumber": "string"  }'
{  "success": true}
Empty
Empty