Two-Factor (TOTP)
Disable 2FA
POST
/api/v1/auth/totp/disableTurns off two-factor authentication on the signed-in account.
Requires Authorization
Credential check
Body parameters
codestringrequired | A current 6-digit code or an unused backup code. |
localestring | en or fr. |
Notes
- All other sessions are revoked when 2FA is disabled, as a safety precaution.
Request
curl --request POST \
--url https://api.swiftgoma.com/api/v1/auth/totp/disable \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "482913",
"locale": "fr"
}'200Example response
{
"success": true,
"data": {
"enabled": false
}
}