Appearance
Begin 2FA setup
POST
/api/v1/auth/2fa/setup
Initiate two-factor authentication setup for the current user. For TOTP, returns a secret and otpauth URI; for email, sends a verification code.
Authorizations
HTTPBearer
Type
HTTP (bearer)
Request Body
application/json
JSON
{
"method": "string"
}
Responses
Successful Response
application/json
JSON
{
"method": "string",
"secret": "string",
"otpauth_uri": "string",
"message": "string"
}