palbaseDocs

Palbase Auth API · API

DELETE/auth/mfa/factors/{id}

Remove an MFA factor

Remove an enrolled MFA factor. Re-authentication is required — the request body must carry the user's current password.

Called by a signed-in user of your app, with their token and the publishable key.

Path

idstring · requiredMFA enrollment ID (`mfa_…`)

Request body

current_passwordstring (password) · requiredRe-authentication — current password is verified before the factor is removed.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/auth/mfa/factors/<id>" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"current_password":"string"}'

Responses

200Factor removed

400Validation failed or required field missing

401Missing, invalid, or expired credentials

404Resource does not exist or is not visible to the caller

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation MfaRemoveFactor of auth's contract.