user

POST /api/user/2fa/totp/setup

Changed on

Start adding an authenticator app: a new secret, as text and QR code.

It protects nothing until confirmed with a code from the app. Starting over replaces an unconfirmed secret.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Request body

namestring

Response

secretstring required

Base32, for typing into the app

otpauthUrlstring required
qrCodestring required

The otpauth URL as an SVG data URI

Changes