Revoke an API key
revoke_api_keyRevoke a site key, so every request with it fails at once. Get the id from list_api_keys. Needs confirm: true; without it the tool only shows what it would revoke. Check with the user first: scripts and agents that use the key stop working. New keys are made in the dashboard, so no secret passes through the chat.
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_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| key_id | Yes | ||
| confirm | No | Set to true to really do it. Without it, the tool only describes what it would do. |