Herald
OpenapiUser

Disable TOTP two-factor authentication for the current user

Disables TOTP and removes the configuration. Requires a single-use reauth ticket obtained by verifying any one of the user's factors (password, TOTP, or Passkey) via `POST /api/user/reauth/verify` (see `consume_reauth`). Cannot be disabled if the realm has force-enabled TOTP.

DELETE
/api/user/totp

Disables TOTP and removes the configuration. Requires a single-use reauth ticket obtained by verifying any one of the user's factors (password, TOTP, or Passkey) via POST /api/user/reauth/verify (see consume_reauth). Cannot be disabled if the realm has force-enabled TOTP.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
reauth_token*string

Response Body

TOTP disabled successfully

application/json
  1. response
disabledAt*string
message*string
Example Request
curl -X DELETE 'https://example.com/api/user/totp' \
  -H 'Content-Type: application/json' \
  -d '{
  "reauth_token": "string"
}'
Example Response
{
  "disabledAt": "string",
  "message": "string"
}