User registration, email/phone verification, login, external OAuth, password reset, 2FA, and profile management.
The User Authentication API handles self-service authentication for end-users. Unlike the Admin Auth API, it includes registration, email/phone verification, external OAuth login, and password reset flows.
Base Configuration
Setting
Value
Description
Base URL
/api/v1/auth/user
All regular user (client) auth endpoints base path
Profile Base URL
/api/v1/Users
User profile management endpoints
Auth Required
Partial
Login, register, external-login, verification, refresh, and password-reset are public; others require Bearer token
Register a new user account with email, password, and tenant. Sends verification email.
🔒 Required
POST /api/v1/auth/user/register — Request BodyJSON
{"username":"alicejohnson","password":"SecureP@ssword1!","email":"alice@example.com","phoneNumber":"+1234567890","tenantCode":"ACME"// Public tenant workspace code}
Login
Method
Endpoint
Description
Auth
POST
/api/v1/auth/user/login
Authenticate user with email and password. Returns JWT access + refresh tokens.
🔒 Required
POST
/api/v1/auth/user/login/{provider}
Initiate SSO or OAuth2 authentication flow with an external identity provider.
🔒 Required
POST /api/v1/auth/user/login — RequestJSON
{"username":"alicejohnson",// Can be email or username"password":"SecureP@ssword1!","deviceInfo":"Mozilla/5.0 Chrome/120.0.0"// Optional}
Email & Phone Verification
Method
Endpoint
Description
Auth
POST
/api/v1/auth/user/verify-email
Verify email address using a 6-digit OTP code sent to the user's email.
🔒 Required
POST
/api/v1/auth/user/verify-phone
Verify phone number using a 6-digit OTP code sent via SMS.
🔒 Required
POST
/api/v1/auth/user/send-email-verification
Dispatch a verification token to the user's primary registered email address.
🔒 Required
POST
/api/v1/auth/user/send-phone-verification
Send an SMS one-time verification passcode to the user's registered mobile number.
🔒 Required
POST /api/v1/auth/user/verify-email — Request & ResponseJSON