SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Two-Factor (TOTP)

Disable 2FA

POST/api/v1/auth/totp/disable

Turns 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
  }
}