Guardrails & Violations
Stream Violations (SSE)
Server-Sent Events stream of guardrail violations
GET
Stream Violations (SSE)
A Server-Sent Events (SSE) endpoint that pushes guardrail violations to a long-lived HTTP connection. Used by the dashboard’s live violations feed.
Response
Content-Type is text/event-stream. Use the browser EventSource API (or any SSE-aware client) to consume it.
Protocol
On connect, the server emits:event: init—datais a JSON array of the most recent 20 violations.
event: violation—datais a single violation JSON object.
: heartbeat comment is emitted every 15 seconds to keep the connection open through proxies.
Each violation payload has the same fields as the List Violations response.
Example
Stream Violations (SSE)

