Summarize one agent's activity
const url = 'https://example.com/v1/agent-events/summary?agent_id=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/agent-events/summary?agent_id=example' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Inclusive RFC3339 start. Defaults to 24 hours before until.
Exclusive RFC3339 end. Defaults to the current time.
Responses
Section titled “Responses”Compact activity summary for a window of at most 31 days.
object
object
True only when at least one usage event supplied an explicit cost value.
Latest received event for this agent across all time; absent until an adapter connects.
Example
{ "schema": "zerker.agent-event-summary.v1"}Invalid agent or time window.
The uniform error body for all 4xx responses that carry one.
object
A coarse, caller-safe message. Never contains internal state (invariant
Examplegenerated
{ "error": "example"}Missing or invalid bearer token, or the token’s tenant/user claims are absent. No body.
No resource with this ID exists in the caller’s tenant.
The uniform error body for all 4xx responses that carry one.
object
A coarse, caller-safe message. Never contains internal state (invariant
Examplegenerated
{ "error": "example"}An unexpected server-side error. No body (internal detail is never returned to callers, invariant