Skip to main content
GET
Per-agent analytics

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Query Parameters

range
enum<string>

Preset range. Use "custom" with from/to for explicit windows.

Available options:
24h,
7d,
30d,
custom
from
string

ISO 8601 datetime (required when range=custom)

to
string

ISO 8601 datetime (required when range=custom)

Response

Agent analytics rows

Per-agent run counts, success rate, and cost totals for the range

agents
object[]
required