Revoke a trusted device
DELETE/api/v1/auth/2fa/trusted-devices/:device_id
Revoke a single trusted-device entry on the authenticated user.
Clears the cookie on the response if the caller's current browser was using this device, so the next login prompts for 2FA immediately.
- 404 if
device_idis unknown. - Rate limit: 20 / 15 min / user (
auth_mfatier).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
Successful Response
Bad request — malformed input or failed validation.
Missing, expired, or invalid credentials.
Authenticated but not authorized for this resource. Note: cross-organization reads return 404, not 403.
Resource not found, or hidden for tenant-enumeration safety (the caller lacks permission to know whether the resource exists).
Conflict — the current resource state does not allow this operation (e.g. assessment already started, email already in use).
Semantic validation failure — request shape was valid but contents were not.
Too many requests — rate limited. Retry after the window resets.
Internal server error — unexpected failure.