Events
Events API endpoints
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
category?string
Value in
"tool" | "skill" | "session" | "api" | "task" | "workflow" | "system"event?string
Value in
"tool.start" | "tool.end" | "skill.invoke" | "skill.complete" | "session.start" | "session.end" | "session.resume" | "session.cost" | "api.request" | "api.error" | "task.poll" | "task.assign" | "task.timeout" | "workflow.step.start" | "workflow.step.end" | "workflow.run.start" | "workflow.run.end" | "system.boot" | "system.migration" | "system.error"status?string
Value in
"ok" | "error" | "timeout" | "skipped"source?string
Value in
"worker" | "api" | "hook" | "scheduler" | "cli"agentId?string
taskId?string
sessionId?string
since?string
until?string
limit?integer
Range
1 <= value <= 1000Response Body
curl -X GET "http://localhost:3013/api/events"Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/events" \ -H "Content-Type: application/json" \ -d '{ "category": "tool", "event": "tool.start", "source": "worker" }'Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/events/batch" \ -H "Content-Type: application/json" \ -d '{ "events": [ { "category": "tool", "event": "tool.start", "source": "worker" } ] }'Empty
Empty
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
category?string
Value in
"tool" | "skill" | "session" | "api" | "task" | "workflow" | "system"source?string
Value in
"worker" | "api" | "hook" | "scheduler" | "cli"agentId?string
taskId?string
sessionId?string
since?string
until?string
Response Body
curl -X GET "http://localhost:3013/api/events/counts"Empty