End an API key
revoke_api_keyEnds one of the workspace's API keys at once: the next call with it is refused. list_api_keys gives the ids. Only owners and admins.
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>",
"reason": "<reason>"
},
"name": "revoke_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_id | Yes | The key to end (list_api_keys gives ids). | |
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |