Skip to main content

REST API

Moved from the README.

The REST API serves JSON over HTTP with JWT authentication and is documented in docs/openapi.yaml. It includes eBPF endpoints that read kernel data through bpftool.

# Health check
curl http://localhost:9191/health

# List flows
curl http://localhost:9191/api/v1/flows

# List policies
curl http://localhost:9191/api/v1/policies

# Generate policy from traffic
curl -X POST http://localhost:9191/api/v1/modules/autopolicy/generate \
-H 'Content-Type: application/json' \
-d '{"namespace":"default","observation_duration":"5m"}'

Flow-history views (read-only): GET /api/v1/flows/history/edges, /cardinality, /otlp, /diff, /fanout, /drops, /top, /audit and /spikes, and GET /api/v1/slo/targets/{id}/burn-rate. See flow-insights.md.

Full endpoint list: docs/web-architecture.md and docs/client/api-reference.html.

InterfaceURL
Web dashboardhttp://<host>:9191
REST APIhttp://<host>:9191/api/v1/
WebSocketws://<host>:9191/api/v1/ws/metrics
Live node metricsws://<host>:9191/api/v1/ws/metrics/live (see metrics.md)
Health checkhttp://<host>:9191/health