Skip to main content
GET
Native router metrics (role-scoped: own rows vs everything)

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

range_days
integer
default:30
user_id
string | null
Maximum string length: 255
team
string | null
Maximum string length: 255

Response

Successful Response

Aggregated router metrics, scoped by the caller's role.

scope
enum<string>
required
Available options:
user,
admin
range_days
integer
required
available
boolean
required

False when the metrics warehouse is unreachable.

message
string | null
pricing_available
boolean
default:true

False when no model_pricing table exists, so usage is real but every spend figure is 0 rather than unknown-but-nonzero.

kpis
MetricKpis · object
by_model
ModelUsage · object[]
by_decision
DecisionUsage · object[]
over_time
TimeBucket · object[]
top_users
UserUsage · object[]
top_teams
TeamUsage · object[]
user_filter
string | null
team_filter
string | null