Skip to Content
Go API referenceAuthentication & profiles

Authentication & profiles

The authentication module is the identity boundary for the platform. It preserves SimpleJWT-compatible access/refresh behavior and PBKDF2-SHA256 password verification while keeping OTP state and revocations in Redis when configured.

Routes

RouteMethodPurpose
/api/v1/auth/register/POSTCreate registration state
/api/v1/auth/register/verify/POSTConfirm registration OTP
/api/v1/auth/login/POSTExchange credentials for tokens
/api/v1/auth/token/refresh/POSTRefresh access token
/api/v1/auth/logout/POSTRevoke/logout current token state
/api/v1/auth/password-reset/POSTStart reset verification
/api/v1/auth/change-password/POSTChange authenticated password
/api/v1/auth/profile/GET, PATCHRead/update profile
/api/v1/auth/profile/image/POST, DELETEManage MinIO/S3 profile image
/api/v1/auth/google/POSTExchange Google token path
/api/v1/auth/phone/send-otp/POSTSend phone verification OTP
/api/v1/auth/phone/verify/POSTVerify phone OTP

Bearer token requirement

Authorization: Bearer <access-token>

Profile and administrative routes obtain identity from the token context, never from a client-provided user_id. Passwords, OTPs, JWTs, and provider credentials must never appear in logs or error payloads.

Last updated on