Skip to main content

Start enabling TOTP two-factor authentication

POST 

/api/v1/auth/2fa/setup

Generates a TOTP secret for the caller (stored, not yet enabled) and returns it with a setupToken that /api/v1/auth/2fa/confirm requires. Adding a sign-in factor needs a re-authentication: currentPassword when the account has a password, otherwise a sign-in within the last 10 minutes. Every attempt spends the per-user change-password budget. Refused for personal access tokens and impersonation tokens.

Request​

Responses​

Pending TOTP secret