Revoke an API key
revoke_api_keyRevoke an API key (permission: admin)
Soft-revoke a key by id. Owner-scoped: a keyId that does not belong to the calling key's project (or, for an org key, its org) revokes nothing and is a flat 404. An agent connection names the owner with projectId / orgId (project editor and above, or organization admin); an API key ignores both parameters. The keyId of a CI key claim (POST /key-claims) whose key does not exist yet voids the unredeemed claim (204): in the owner's project, or a claim the caller created. After the redemption the caller that created the claim revokes the key it minted by the same keyId, also an org key.
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": {
"keyId": "<keyId>"
},
"name": "revoke_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | Yes | API key id: from GET /keys, or `keyId` of the POST /key-claims answer. | |
| orgId | No | Agent connections only (exactly one of projectId/orgId). | |
| projectId | No | Agent connections only (exactly one of projectId/orgId). |