Show API Key Activity
activityReview API key requests and hourly read counts to audit account actions, filter by key, action, outcome, or date, and spot refused requests or errors.
Instructions
Show what this account's API keys did, newest first: every key of the account, including the one this
agent uses, as the console's API keys page shows under Activity.
kind "actions" lists each request that changed something, ran a check or an estimate, revealed a machine
login or issued an install command, with its result. action is a name such as "pod.create",
"storage.delete" or "machine.maintenance.schedule" (estimates end in ".estimate" and change nothing);
outcome is "accepted", "refused" (error_title says why) or "error"; operation_id is set only for writes
the server deduplicates (null otherwise), and replayed true means a retry got the first answer back instead
of acting again. source, resource_id, machine_id, workspace and operation_id are what the calling
client sent; the key is what identifies who sent the request.
"reads" lists read requests as hourly counts (UTC) per key, source and kind of resource, without a total;
the current hour can lag by a few seconds.
Request contents are never recorded. key keeps one key's activity: a key_id from these results. For
actions, outcome keeps one result and action keeps one action, or every action under a prefix ending in
"." ("machine." for every machine action).
since and until are dates in YYYY-MM-DD (UTC; until includes that whole day) or ISO 8601 times. The
default is the last 30 days; one call covers at most 180 days, which is how long activity is kept.
key_revoked true means that key has been revoked or deleted since. If the user doesn't recognize an action,
tell them: they can revoke the key in the console.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| kind | No | actions | |
| limit | No | ||
| since | No | ||
| until | No | ||
| action | No | ||
| cursor | No | ||
| outcome | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||