Revoke an API key
revoke_api_keyStops a key working immediately. Revoking the key this connection authenticated with is allowed and ends the connection — it is the right move if a key has leaked, so it isn't blocked, but it is not undoable. Issuing a replacement is a dashboard action.
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": {
"id": "<id>"
},
"name": "revoke_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the API key to revoke, from list_api_keys (not the key itself or its prefix). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| revoked | Yes | ||
| wasCurrentKey | Yes | True if this was the key this connection used, which has now ended. |