revoke_api_key
Revoke an API key by ID to stop its authentication. The action is irreversible; if it's the last active key, create a replacement first.
Instructions
Revoke one API key by id (find ids with list_api_keys). The key stops authenticating and the revocation cannot be undone from this tool. Guardrails: an unknown key_id fails with api_key_not_found, and revoking the organization's last active key is refused with cannot_revoke_last_key — create a replacement with create_api_key first. Returns key_id with revoked: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | API key id from list_api_keys. |