Setup 2FA
Requires a valid Bearer token.
Request Body
string
required
Current account password to confirm identity.
Response
string
TOTP secret string for manual entry into the authenticator app.
string
Base64-encoded data URL of the QR code image.
string[]
One-time backup codes for account recovery if the authenticator device is lost.
Errors
Example
Verify and Enable 2FA
Requires a valid Bearer token.
Request Body
string
required
6-digit code from the authenticator app. Must be exactly 6 numeric digits.
Response
string
Confirmation message.
Errors
Example
Disable 2FA
Requires a valid Bearer token.
Request Body
string
required
Current account password.
string
required
Current 6-digit code from the authenticator app. Must be exactly 6 numeric digits.
Response
string
Confirmation message.

