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.
Updates the authenticated user's phone number. Validates and stores in E.164 format. Pass an empty string to remove.
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}Update notification preferences PUT
Updates the supplied notification categories, preserving omitted categories and order event overrides. Supports email, SMS, WhatsApp, and push channels.
Upload a user avatar POST
Upload a new avatar image. Defaults to the authenticated user; organization owners and admins may pass `userId` for a non-owner member of the active organization. Replaces any existing avatar. Accepts JPEG, PNG, WebP, or GIF up to 5MB.