Revoke API key
revoke_api_keyPermanently revokes an API key and all keys it created, stopping their authentication immediately. Use it to disable compromised or unused credentials; this action cannot be undone.
Instructions
Requires the admin scope or higher. Permanently revokes an API key and every key it created, recursively; all of them stop authenticating immediately. This cannot be undone; list_api_keys' created_by_key_id shows which keys a revoke reaches.
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": {
"api_key_id": "<api_key_id>"
},
"name": "revoke_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key_id | Yes | UUID of the key to revoke, from list_api_keys. |