Skip to main content
GET
/
api
/
runtime-security
/
analytics
Aggregate verdict / latency / PII stats over a time window
curl --request GET \
  --url https://api.antidote.example.com/api/runtime-security/analytics \
  --header 'X-API-Key: <api-key>'
{
  "range_days": 123,
  "range_minutes": 123,
  "bucket_seconds": 123,
  "totals": {
    "total": 123,
    "input": 123,
    "output": 123,
    "tool_call": 123,
    "pii_hits": 123,
    "injection_hits": 123
  },
  "verdict_breakdown": {
    "allow": 123,
    "redact": 123,
    "block": 123
  },
  "avg_latency_ms": 123,
  "p95_latency_ms": 123,
  "pii_category_breakdown": {},
  "top_injection_labels": [
    {
      "label": "<string>",
      "count": 123
    }
  ],
  "series": [
    {
      "date": "2023-12-25",
      "allow": 123,
      "redact": 123,
      "block": 123,
      "total": 123
    }
  ],
  "model_name": "<string>"
}

Authorizations

X-API-Key
string
header
required

Antidote workspace API key (ak_live_…). Use this header for the scan API and the OpenAI proxy routes. The required permission scope is runtime_security.scan for scan endpoints, runtime_security.view for read-only analytics, and runtime_security.manage for configuration changes.

Query Parameters

days
integer
default:14

Lookback window in days. Ignored if minutes is set.

Required range: 1 <= x <= 3650
minutes
integer

Lookback window in minutes (overrides days).

Required range: 1 <= x <= 5256000

Response

200 - application/json

Aggregates

range_days
integer
range_minutes
integer
bucket_seconds
integer
totals
object
verdict_breakdown
object
avg_latency_ms
number
p95_latency_ms
number
pii_category_breakdown
object
top_injection_labels
object[]
series
object[]
model_name
string