Register User
Changed onRegister the authenticated user in our system.
This endpoint should be called by the frontend after Supabase authentication to create the user record in our Users service. It uses the Supabase user ID (from JWT 'sub' claim) as the primary key.
Safe to call multiple times. If user already exists, returns 200 OK. The response includes the frontend's next routing step:
- next_step="email" for phone-only users who must collect a primary email
- next_step="app" for complete users
Requires authentication via Bearer token (Supabase JWT). A guest (anonymous-session) token is refused: a guest becomes an account through /auth/add-identity and /auth/verify-identity, then registers with the refreshed, non-anonymous session.
Request
- Base URL: https://api.helloaxel.com (the document declares no server; this is the origin it was published from)
- URL: https://api.helloaxel.com/auth/register
- Auth: HTTP bearer
Request body
Response
Successful Response
Changes
- info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
///////
- info
- info
added the new optional request property
/////// - info
added the new optional request property
/////// - info
added the new optional request property
///////
- info