Two Factor Authentication
Two-factor authentication setup and verification
Get 2FA status for current user
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Initialize 2FA setup - returns QR code and secret
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Verify 2FA setup with TOTP code
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Request Body
application/jsonRequiredcodeRequiredstringTOTP code or backup code
Verify TOTP code during login
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Request Body
application/jsonRequiredcodeRequiredstringTOTP code or backup code
Disable 2FA for current user
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Request Body
application/jsonRequiredpasswordRequiredstringCurrent password for verification
Get backup codes status
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Regenerate backup codes
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Get list of trusted devices
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Add a trusted device
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Request Body
application/jsonRequireddeviceNameRequiredstringDevice name
deviceTypeRequiredstringDevice type
browserInfostringBrowser information
ipAddressstringIP address
locationstringLocation
deviceFingerprintRequiredstringUnique device fingerprint
Remove all trusted devices
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Remove a trusted device
Authorization
AuthorizationRequiredBearer <token>Enter your JWT token
In: header
Path Parameters
deviceIdRequiredstring