List agents
GET /agents
Returns all agents for the authenticated user with aggregated summary statistics.
Response — 200
An array of agent summary objects.Agent UUID.
Agent name as provided during ingestion.
Total number of traces (runs) for this agent.
Percentage of runs with
success: true (e.g. 73.2 = 73.2%). Null if no runs have a success signal.Total LLM cost in USD across all runs.
Average
total_cost_usd per run in USD.ISO 8601 timestamp of the most recent trace.
ISO 8601 timestamp when this agent record was first created.
Example response
Get agent detail
GET /agents/{agent_id}
Returns full detail for a single agent, extending the summary fields with per-outcome run counts. Returns 404 if the agent does not exist or does not belong to the authenticated user.
Path parameters
UUID of the agent.
Response — 200
All fields from the list response, plus:Number of runs with
success: true.Number of runs with
success: false.Example response
Get agent time-series stats
GET /agents/{agent_id}/stats
Returns daily aggregated statistics for an agent over a rolling time window. Returns 404 if the agent is not found.
Path parameters
UUID of the agent.
Query parameters
Number of days to include. Accepted values:
7, 30, 90. Any other value is treated as 7.Response — 200
Agent UUID.
Agent name.
The requested window as a string:
"7d", "30d", or "90d".One entry per day in the date range.
Example response
Get agent run history
GET /agents/{agent_id}/runs
Returns paginated trace history for an agent, ordered newest-first. Returns 404 if the agent is not found.
Path parameters
UUID of the agent.
Query parameters
Page number (1-indexed).
Number of traces per page. Clamped to
1–100.Response — 200
Array of trace summaries for the current page.
Total number of traces for this agent (before pagination).
Current page number.
Number of traces per page.
Whether there are more pages after this one.