Totp Disable
POST
/auth/totp/disable
const url = 'https://example.com/auth/totp/disable';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/auth/totp/disable \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "password": "example" }'Turn 2FA off. Requires the current password AND a valid TOTP/backup code, so neither a stolen unlocked session nor a stolen password alone suffices.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
TotpDisableRequest
object
code
required
Code
string
password
required
Password
string
Examplegenerated
{ "code": "example", "password": "example"}Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}