Runtime healthList recent blocked or warned events

List recent blocked or warned events

The most recent events that did not pass, newest first.

curl -X GET "https://www.agentkeeper.dev/api/v1/claude-code/recent?hostname=John%20Doe&limit=10" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "events": [
    {
      "created_at": "2026-08-18T10:41:09.000Z",
      "verdict": "blocked",
      "pattern_name": "destructive-filesystem",
      "tool_name": "Bash",
      "hostname": "dev-laptop-01",
      "summary": "rm -rf on a path outside the workspace"
    }
  ],
  "total": 1,
  "has_more": false,
  "total_is_exact": false
}
GET
/api/v1/claude-code/recent
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An AgentKeeper API key, sent as Authorization: Bearer ak_live_….

An AgentKeeper API key, sent as Authorization: Bearer ak_live_….
query
hostnamestring

Restrict to one workstation.

query
limitinteger

Results to return. Values below 1 or non-numeric fall back to 10; values above 50 are capped at 50.

Min: 1 • Max: 50
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An AgentKeeper API key, sent as Authorization: Bearer ak_live_….

Query Parameters

hostnamestring

Restrict to one workstation.

limitinteger

Results to return. Values below 1 or non-numeric fall back to 10; values above 50 are capped at 50.

Responses

eventsarray
totalinteger

Events in this response

has_moreboolean
total_is_exactboolean

Always false. Use has_more to page.