List agents
GET /agents
Returns all agents for the authenticated user with aggregated summary statistics.
Response — 200
An array of agent summary objects.string
Agent UUID.
string
Agent name as provided during ingestion.
number
Total number of traces (runs) for this agent.
number | null
Percentage of runs with
success: true (e.g. 73.2 = 73.2%). Null if no runs have a success signal.number | null
Total LLM cost in USD across all runs.
number | null
Average
total_cost_usd per run in USD.string | null
ISO 8601 timestamp of the most recent trace.
string
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
string
required
UUID of the agent.
Response — 200
All fields from the list response, plus:number
Number of runs with
success: true.number
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
string
required
UUID of the agent.
Query parameters
number
default:"7"
Number of days to include. Accepted values:
7, 30, 90. Any other value is treated as 7.Response — 200
string
Agent UUID.
string
Agent name.
string
The requested window as a string:
"7d", "30d", or "90d".object[]
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
string
required
UUID of the agent.
Query parameters
number
default:"1"
Page number (1-indexed).
number
default:"20"
Number of traces per page. Clamped to
1–100.Response — 200
object[]
Array of trace summaries for the current page.
number
Total number of traces for this agent (before pagination).
number
Current page number.
number
Number of traces per page.
boolean
Whether there are more pages after this one.