Start TOTP enrolment
Returns a new secret. It is not active until the user confirms it with a code. A new start replaces a pending secret.
POST
/api/v1/auth/two-factor/enrolmentAuthorization
tse_sessionAPI key · cookierequiredResponses
200
OK
otpauth_uristringrequiredqr_codestringrequiredThe QR code of otpauth_uri, as a PNG data URI
secretstringrequiredThe base32 secret, for manual entry in the authenticator app
default
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message