Analytics
Query time-series event data and top threat breakdowns.
Analytics
Query time-series event data and top threat breakdowns.
GET
/v1/org/analytics/timeseriesJWTEvent counts per day (1-30 days)
GET
/v1/org/analytics/top-threatsJWTTop 10 threat types by count
Time series
GET /v1/org/analytics/timeseries?days=7
{
"data": [
{ "date": "2026-03-06", "count": 234 },
{ "date": "2026-03-07", "count": 189 },
{ "date": "2026-03-08", "count": 412 }
]
}Time Series
The time series endpoint returns daily event counts for the specified number of days. Use the days query parameter to control the range (1-30).
| Parameter | Type | Default | Description |
|---|---|---|---|
| days | integer | 7 | Number of days to query (1-30) |
Top Threats
Returns the top 10 threat types by event count over the last 30 days. Useful for understanding which attack vectors are most common in your environment.
Top threats response
GET /v1/org/analytics/top-threats
{
"data": [
{ "type": "prompt_injection", "count": 847 },
{ "type": "rate_limit_exceeded", "count": 312 },
{ "type": "data_exfiltration", "count": 156 },
{ "type": "anomaly_detected", "count": 89 }
]
}