Disable 2Fa
curl --request POST \
--url https://api.example.com/api/v1/auth/2fa/disable \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"code": "<string>",
"backup_code": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({password: '<string>', code: '<string>', backup_code: '<string>'})
};
fetch('https://api.example.com/api/v1/auth/2fa/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/auth/2fa/disable"
payload = {
"password": "<string>",
"code": "<string>",
"backup_code": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>"
}Auth
Disable 2Fa
Disable 2FA for authenticated user.
Accepts ONE of: current password, current TOTP code, or a backup code. Backup codes are the recovery path for users who’ve lost their authenticator AND don’t have a usable password (magic-link-only accounts).
POST
/
api
/
v1
/
auth
/
2fa
/
disable
Disable 2Fa
curl --request POST \
--url https://api.example.com/api/v1/auth/2fa/disable \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"code": "<string>",
"backup_code": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({password: '<string>', code: '<string>', backup_code: '<string>'})
};
fetch('https://api.example.com/api/v1/auth/2fa/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/auth/2fa/disable"
payload = {
"password": "<string>",
"code": "<string>",
"backup_code": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>"
}