GET /agents
List agents, get detailed cost breakdowns, and fetch hourly cost data.
GET /agents
Returns all agents that have sent events in the last 24 hours, along with their total cost and LLM call count.
Response
| Field | Description |
|---|---|
agent_id | Agent identifier |
total_cost_usd | Cumulative USD cost in the last 24h |
llm_calls | Number of llm_call events in the last 24h |
cost_threshold_usd | Configured daily budget (if set) |
is_paused | Whether the agent is currently paused |
GET /agents/events
Returns the most recent events across all agents for the authenticated user.
| Query param | Default | Description |
|---|---|---|
limit | 50 | Max number of events to return (most recent first) |
GET /agents/{agent_id}
Full detail for a single agent: cost breakdown by model, all events in the last 24h, and current config.
Response
Returns 404 if the agent has no events and no config.
GET /agents/{agent_id}/hourly
Returns cost bucketed by hour for the last 24 hours (or hours param). Used by the dashboard chart.
| Query param | Default | Description |
|---|---|---|
hours | 24 | Number of hours to look back |
Response
Every hour in the window is returned, including zero-cost hours. Hours are in UTC.