Revoke API key (admin only)
POST/api/auth/api-keys/:id/revoke
Revoke API key (admin only)
Request
Responses
- 200
- 401
- 403
- 404
- 409
The revoked API key (isActive now false).
The API key is missing, unknown, revoked, or expired
The API key's role, session or chat scope, or IP allow-list does not allow this operation
No API key with this id.
The key is the last usable admin key: no other usable admin key lasts at least as long.