Two Factor Auth
GET
Responses
200
QR code generated successfully
application/json
qrCodestringOptionalExample:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...linkstringOptionalExample:
otpauth://totp/AppName:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=AppName400
QR code was already generated
application/json
get
/2fa/generate-qrPOST
Body
codestringRequiredExample:
Two-factor authentication code
123456Responses
200
Two-factor authentication enabled successfully
application/json
anyOptionalExample:
{"message":"Two-factor authentication enabled successfully","description":"Two-factor authentication has been enabled for your account."}400
Invalid two-factor authentication code
application/json
500
Internal server error
application/json
post
/2fa/enable-two-factor-authResponses
200
Two-factor authentication disabled successfully
application/json
anyOptionalExample:
{"message":"Two-factor authentication disabled successfully","description":"Two-factor authentication has been disabled for your account."}500
Internal server error
application/json
post
/2fa/disable-two-factor-authBody
codestringRequiredExample:
Two-factor authentication code
123456Responses
200
Authentication successful
application/json
accessTokenstringOptionalExample:
access_tokenrefreshTokenstringOptionalExample:
refresh_tokenisTwoFactorEnablebooleanOptionalExample:
true400
Invalid two-factor authentication code
application/json
500
Internal server error
application/json
post
/2fa/authenticateImpersonates another user using two-factor authentication code. This endpoint is only available for admins of support team.
post
Body
userIdnumberRequiredExample:
1teamIdnumberRequiredExample:
1codestringRequiredExample:
123456Responses
200
Impersonation successful
application/json
accessTokenstringOptionalExample:
access_tokenisTwoFactorEnablebooleanOptionalExample:
false400
Invalid two-factor authentication code
application/json
403
Access denied if user is not an admin.
application/json
404
User not found
application/json
500
Internal server error
application/json
post
/2fa/impersonateResponses
200
Impersonation cancelled successfully
application/json
accessTokenstringOptionalExample:
access_tokenrefreshTokenstringOptionalExample:
refresh_token403
Invalid token
application/json
404
User not found
application/json
500
Internal server error
application/json
post
/2fa/desimpersonationLast updated