DELETE
/api/user/mfa/webauthn/{factor_id}AuthenticatedRemove a passkey
Deletes one of the caller's passkeys. The request must carry a step-up proof of a current factor (any TOTP code, a fresh passkey assertion, or a recovery code); a passkey assertion consumes the step-up challenge whatever the outcome. Removing the last verified factor also discards the account's recovery codes. A security alert e-mail is sent.
operationId
delete_api_user_mfa_webauthn_factor_idMulti-factor authenticationAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
Path parameters
| Name | Type | Description |
|---|---|---|
| factor_id* | string (uuid) | MFA factor id, as returned by the enrollment endpoints and |
Request body
Required
application/json
MfaRemovePasskeyRequest
| Property | Type | Description |
|---|---|---|
| proof* | object | object | object | Step-up proof: a current TOTP code ( |
JSONExample
"proof"
"type""totp"
"factor_id""123e4567-e89b-12d3-a456-426614174000"
"code""string"
Responses
application/json
MfaFactorRemoved
| Property | Type | Description |
|---|---|---|
| success* | true |
JSONExample
"success"true
Example request
bashcurl
curl -X DELETE 'https://auth.schemavaults.com/api/user/mfa/webauthn/<factor_id>' \
-b 'refresh_token_<auth_server_app_id>=<value>' \
-H 'Content-Type: application/json' \
-d '{
"proof": {
"type": "totp",
"factor_id": "123e4567-e89b-12d3-a456-426614174000",
"code": "string"
}
}'