API reference
POSTRequires Bearer token
Start TOTP enrollment
/api/v1/mfa/totp/setup
Returns secret and otpauth_url. Pending until confirm. 403 if TOTP is already active.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
This endpoint does not accept a request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Pending TOTP |
| 401 | Missing or invalid Bearer token. |