Authorize by Multi-Factor Authentication

The POST /api/auth/v2/2Fac endpoint is used to authorize a user via Multi-Factor Authentication (MFA). This method provides an additional layer of security by requiring the user to submit a valid authentication code or token sent to their registered device (e.g., mobile phone or email). The MFA ensures that access to sensitive information or actions is only granted after the user’s identity is verified through an additional factor beyond their password.

Purpose:

  • Authenticate users through a secondary factor (e.g., OTP or authentication app code) in addition to their password.
  • Enhance security by validating that the user has access to the registered device for receiving the authentication code.

Response:

  • If the MFA is successful, the response confirms that the user is authorized
  • If the MFA token is invalid or expired, the response will return an error message

Multi-Factor Authentication ensures that users must confirm their identity with an additional authentication step beyond the password, adding a strong security layer.

Body Params
string
required
length ≥ 1
string
required
length ≥ 1
string
required
length ≥ 1
string
required
length ≥ 1
boolean
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json