API referenceMfa

Remove your authenticator

Turn the factor off, on proof. A code is required because a hijacked session that can silently remove the second factor has already removed it. A recovery code is accepted here too — someone whose phone is gone still needs a way out, and that is what recovery codes are for.

DELETE
/api/b/v1/mfa

Turn the factor off, on proof.

A code is required because a hijacked session that can silently remove the second factor has already removed it. A recovery code is accepted here too — someone whose phone is gone still needs a way out, and that is what recovery codes are for.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

admin_access_token?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/b/v1/mfa" \  -H "Content-Type: application/json" \  -d '{    "code": "123456"  }'
{  "removed": true}