revoke_agent_api_key
Revoke an API key
Revokes one lasoak_ API key, the same action as Revoke on the dashboard. A revoked key can no longer be exchanged for a session at agentAuth, and its MCP event subscriptions stop. A session already minted from the key is not cut off: its id_token lasts out its hour. Revoking a key that is already revoked succeeds and changes nothing.
To revoke a key you hold the raw value of, you can instead POST it as token to /oauth/revoke (RFC 7009) without looking up its keyId.
Free.
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_agent_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | Yes | The key's id, as returned by `createAgentApiKey` or `listAgentApiKeys`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||