Auth
Enable two-factor
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.
udon_session<token>
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/auth/2fa/enable" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'{ "recoveryCodes": [ "string" ]}