Remove one of the caller's second factors
/v1/auth/mfa/factors/{id}Removes one of the authenticated administrator's second factors by id and returns 204 No Content. Requires a valid step-up token in the x-mfa-step-up-token header (401 with mfa.step_up_required when absent, mfa.step_up_invalid when stale or another user's). Responds 404 when the factor does not exist or belongs to someone else. Writes user.mfa.factor.removed and emails the account holder.
Authentication
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
idstring Required Headers
x-mfa-step-up-tokenrequiredThe step-up token `POST /v1/auth/mfa/step-up` returned, proving a second factor was answered moments ago for this administrator
Responses
Deletes the factor. Requires a fresh `X-Mfa-Step-Up-Token`, so a stolen session cannot quietly strip the second factor. The account holder is emailed afterwards.
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X DELETE "https://auth.canopy-io.com/v1/auth/mfa/factors/value" \ -H "x-mfa-step-up-token: value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
HTTP/1.1 204 Deletes the factor. Requires a fresh `X-Mfa-Step-Up-Token`, so a stolen session cannot quietly strip the second factor. The account holder is emailed afterwards. (empty body)
Tell us how we can improve this guide.