Auth
Disable two-factor
Turns two-factor off for your own account, confirmed with your password. Requires the **viewer** role.
udon_session<token>
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/auth/2fa/disable" \ -H "Content-Type: application/json" \ -d '{ "password": "string" }'Empty
Begin two-factor setup POST
Starts TOTP setup for your own account and returns the secret and the `otpauth://` URL for the authenticator app. Two-factor stays off until the first code is confirmed via the enable endpoint. Requires the **viewer** role.
Enable two-factor POST
Confirms the pending TOTP setup with a code from the authenticator and turns two-factor on, returning one-time recovery codes. Requires the **viewer** role.