logo
MFAStart MFA enrollment
MFA

Start MFA enrollment

Generates a TOTP secret, persists it encrypted with mfa_enabled still false, and returns otpauth_url plus Base32 secret for manual entry. The SPA should render a QR code from otpauth_url locally. 409 if MFA is already fully enabled.

curl -X POST "//api/auth/mfa/enroll/begin" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (API token)"
{
  "otpauth_url": "example_string",
  "secret": "example_string"
}
POST
/api/auth/mfa/enroll/begin
POST
API Key (cookie: slugbase.sid)
slugbase.sidstring
Required

Session cookie after login

Session cookie after login
Bearer Token (API token)
Bearer Tokenstring
Required

Bearer token (API token) - just enter the token, "Bearer" prefix will be added automatically

Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Session cookie after login

header
Authorizationstring
Required

Bearer token (API token). Authentication token required.

Responses

otpauth_urlstring
Required

otpauth URI for QR / authenticator import (do not log in production)

secretstring
Required

Base32 secret for manual entry