Skip to main content
DELETE
/
v2
/
databases
/
{database}
/
auth
/
mfa
Disable MFA for the current user
curl --request DELETE \
  --url https://api.example.com/v2/databases/{database}/auth/mfa \
  --header 'Content-Type: application/json' \
  --cookie nile-auth.session-token= \
  --data '
{
  "token": "<string>",
  "scope": "challenge",
  "method": "authenticator",
  "code": "<string>",
  "requireCode": true
}
'
{
  "ok": true,
  "method": "authenticator"
}

Authorizations

nile-auth.session-token
string
cookie
required

Session token stored in a cookie after user signs in, prefixed with __Secure if on https

Path Parameters

database
string
required

The string (id or name, depending on the credentials)

Body

application/json
token
string

Raw MFA challenge token issued during login or setup. Required when verifying email MFA.

scope
enum<string>

Indicates the origin of the token.

Available options:
challenge,
setup
method
enum<string>

Expected MFA method for the disable request.

Available options:
authenticator,
email
code
string

One-time passcode submitted to confirm MFA ownership.

requireCode
boolean

Forces the server to verify code before disabling MFA.

Response

MFA was disabled successfully.

ok
boolean
required

Indicates that MFA has been disabled for the user.

method
enum<string>
required

MFA method that was removed.

Available options:
authenticator,
email