Skip to main content
GET
Time-series 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

Bucketed analytics payload

Time-series analytics bucketed by hour/day (shape may include summary totals)

messageVolume
object[]
required
workflowRuns
object[]
required
responseTimes
object[]
required
costOverTime
object[]
required
{key}
any