Skip to main content
GET
Get policy stats

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

policy_id
string<uuid>
required

Query Parameters

days
integer
default:7
Required range: 1 <= x <= 30

Response

Successful Response

GET /policies/{id}/stats: what the policy decided over days, from the evaluation ledger. available is false, and the rest empty, when the telemetry store is not configured or fails. The caller zero-fills by_day.

days
integer
required
available
boolean
default:false
totals
Totals · object
by_day
By Day · object[]
by_agent
By Agent · object[]
recent
Recent · object[]
latency_ms
Latency Ms · object
last_decision_at
string<date-time> | null