Safety API
API Reference
Guardian API
Metrics, trends, insights, warnings, dashboard, and TEE telemetry endpoints.
Metrics
Time-windowed metric snapshots across all 23 Guardian metric types.
GET
/api/guardian/metricsFetch metric snapshots for a given time window
GET
/api/guardian/tee/metricsAggregate TEE action and task metrics
GET
/api/guardian/tee/actionsRecent action log entries (filterable by since/limit)
GET
/api/guardian/tee/tasksRecent task log entries
Trends
Detected trends across all metric windows.
GET
/api/guardian/trendsAll active trends with classification, z-score, change %
Insights
AI-generated safety insights.
GET
/api/guardian/insightsRecent insights (filterable by severity, category, actionable)
Dashboard
Assembled dashboard payload.
GET
/api/guardian/dashboardDashboardFull dashboard payload: risk, warnings, insights, trends, metrics