Skip to content

Disable MFA

POST
/api/mfa/disable
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)

Disable MFA request

Media typeapplication/json
object
code

TOTP code or backup code

string
Examplegenerated
{
"code": "example"
}

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
}