Skip to main content
GET
How an agent's model requests were routed

Authorizations

Authorization
string
header
required

Bearer token: an organization API key (ak_…) created under Settings → API Keys, or a dashboard user session token. Agent keys (xe_…) are not accepted here. Endpoints marked as user-only in their description reject organization keys with 403.

Path Parameters

agent_id
string<uuid>
required

Query Parameters

window
enum<string>
default:24h

1h, 24h or 7d

Available options:
1h,
24h,
7d

Response

Successful Response

GET /agents/{agent_id}/routing-stats: an agent's model requests over a window, from telemetry. available is false (and every number zero) when the telemetry store cannot be read.

window
enum<string>
required
Available options:
1h,
24h,
7d
available
boolean
default:true
requests
integer
default:0
served_by_fallback
integer
default:0
fallback_rate
number
default:0
exhausted
integer
default:0
by_provider
RoutingStatsProvider · object[]
reasons
RoutingStatsReason · object[]