Disable MFA
POST
/api/mfa/disable
const url = 'http://localhost:3001/api/mfa/disable';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"code":"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 http://localhost:3001/api/mfa/disable \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "code": "example" }'Disable multi-factor authentication by providing a valid verification code (TOTP or backup code)
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Disable MFA request
Media typeapplication/json
object
code
TOTP code or backup code
string
Examplegenerated
{ "code": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
message
string
success
boolean
Examplegenerated
{ "message": "example", "success": true}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Service Unavailable
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}