Revoke API key
revoke_keyRevokes an API key so every agent and integration using it stops working immediately; this action is permanent, so create a new key instead.
Instructions
Revoke an API key: it stops working at once, for every agent or integration using it. Cannot be undone (create a new key instead). Revoking an already revoked key changes nothing. A test key can revoke only test keys. Requires confirm: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key_id": "<key_id>"
},
"name": "revoke_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | API key id (UUID) from list_keys or create_key | |
| confirm | No | Must be true (not needed for dry_run); set it only when the user asked to revoke this key | |
| dry_run | No | true: validate and show what would happen without changing anything | |
| idempotency_key | No | Any unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| result | Yes | ||
| status | No | ||
| changes | No | ||
| dry_run | No | ||
| message | No | ||
| error_code | No |