Auth - Login

User Login – Generate JWT Tokens

This endpoint performs user authentication and issues the user's JWT tokens. The response depends on whether multi-factor authentication (MFA) is enabled for the user:

  • If the user does not have MFA enabled, the API returns a TokenPair object containing the access_token and refresh_token, allowing immediate authentication.
  • If the user has MFA enabled, the response returns an MFAToken object. This temporary token must be used in the MFA verification endpoint to complete authentication. After successful verification of the second factor, the TokenPair is issued.
post/account/auth/login

Request body

emailstring email required
passwordstring required

User password

account_idinteger nullable

Response

User authenticated successfully. Returns JWT tokens or MFA token if MFA is enabled.

statestring

Changes

No recorded changes to this endpoint across all 1 revision of this API.