Revoke an API key
DELETE/v1/api-keys/:api_key_id
Revokes an API key immediately. Subsequent use returns 401, and work the key started (a paused generation) calls no tool on its next step.
Request
Responses
- 204
- 401
- 403
- 404
- 502
API key revoked.
Missing or invalid credentials.
Authenticated, but not permitted to act on this key, or outside a narrowed key's capabilities.
The resource does not exist (existence is not leaked).
UPSTREAM_UNAVAILABLE: the runtime did not record the revocation, so the key stays live. Retry.