Two Factor Auth

GET

Generates a QR code for enabling two-factor authentication.

get
Responses
200

QR code generated successfully

application/json
get
/2fa/generate-qr

POST

Enables two-factor authentication for the user.

post
Body
codestringRequired

Two-factor authentication code

Example: 123456
Responses
200

Two-factor authentication enabled successfully

application/json
ResponseanyExample: {"message":"Two-factor authentication enabled successfully","description":"Two-factor authentication has been enabled for your account."}
post
/2fa/enable-two-factor-auth

Disables two-factor authentication for the user.

post
Responses
200

Two-factor authentication disabled successfully

application/json
ResponseanyExample: {"message":"Two-factor authentication disabled successfully","description":"Two-factor authentication has been disabled for your account."}
post
/2fa/disable-two-factor-auth

Authenticates the user using two-factor authentication code.

post
Body
codestringRequired

Two-factor authentication code

Example: 123456
Responses
200

Authentication successful

application/json
post
/2fa/authenticate

Impersonates another user using two-factor authentication code. This endpoint is only available for admins of support team.

post
Body
userIdnumberRequiredExample: 1
teamIdnumberRequiredExample: 1
codestringRequiredExample: 123456
Responses
200

Impersonation successful

application/json
post
/2fa/impersonate

Cancels the impersonation and returns the original user's tokens.

post
Responses
200

Impersonation cancelled successfully

application/json
post
/2fa/desimpersonation

Last updated