Force-reset an identity's MFA — admin recovery action
/api/v1/identities/{id}/mfa/resetForce-resets an identity's MFA enrollment (server-to-server admin), clearing all enrolled factors across the Account so the identity must re-enroll on next sign-in. Gated by an Environment-scoped membership check and audited. Returns 204 No Content; returns 404 when the identity has no membership in this Environment.
Authentication
Bearer Token
Authorization Option A JWT access token
API Key
X-API-Key Option B API key for management-tier access
Path Parameters
idstring Required Responses
Hard-deletes every enrolled factor, marks the current recovery-code generation redeemed, deletes every trusted-device row, and stamps `mfa_admin_reset_at`. The identity must re-enroll on next login.
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X POST "https://auth.canopy-io.com/api/v1/identities/value/mfa/reset" \ -H "X-API-Key: $CANOPY_API_KEY"
HTTP/1.1 204 Hard-deletes every enrolled factor, marks the current recovery-code generation redeemed, deletes every trusted-device row, and stamps `mfa_admin_reset_at`. The identity must re-enroll on next login. (empty body)
Tell us how we can improve this guide.