sessions
Get Stats
Aggregate counters for the dashboard stat cards + status bar.
Request Parameters
- range (Literal): Time window on last_activity_at: 24h, 7d, 30d, or all (default: 30d).
Response
Returns a JSON object with:
- sessions (int): Number of sessions in the window.
- total_spend_usd / avg_spend_per_session_usd (float): Cost totals.
- tokens_in / tokens_out / tokens_total (int): Token totals.
- agent_time_s / avg_session_s (float): Summed and average session duration in seconds.
- success_rate (float): completed / (completed + failed + abandoned); 1.0 when no session has ended yet.
- completed / failed / abandoned / running (int): Effective-status counts.
GET
Get Stats
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Time window filtered on last_activity_at: 24h, 7d, 30d, or all.
Available options:
24h, 7d, 30d, all Example:
"30d"
Response
Successful Response
Get Stats