Authenticate user
POST /api/v1/auth/login
POST
/api/v1/auth/login
Authenticate with email and password, returns a token pair.
Authorizations
Request Body required
Request body for the login endpoint.
Attributes: email: The user’s email address. password: The user’s password.
object
email
required
User email address
string format: email
password
required
User password
string
Responses
200
Successful Response
Response body for the login endpoint.
Attributes: access_token: A short-lived JWT access token. refresh_token: A long-lived JWT refresh token. token_type: Always ‘bearer’. two_fa_required: Whether a second factor is needed. two_fa_token: Short-lived token for 2FA verification.
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string