Real-Time Events
Igris provides a Server-Sent Events (SSE) endpoint that streams events for your organization as they happen. You can connect your own clients for monitoring and alerting.In the Igris dashboard, only the Audit Trail page listens to this stream (the Live button in its header). The Overview, Observe, LLM Cost, and Incidents pages do not update themselves. Use their Refresh button.
SSE Endpoint
Authorization: Bearer ig_...).
Permission: observe:read. An API key acts with its creator’s current role, so the creator needs observe:read. See Roles and permissions.
Scoping: You receive only events for your organization.
Connecting
curl
Browser (EventSource)
EventSource cannot send an Authorization header, so it relies on the session cookie. That works from the Igris dashboard origin, which is allowed to send credentials to the API. For your own client or service, use curl or a streaming fetch with your API key instead.
Event Types
connected
Sent once when the stream opens.
heartbeat
Sent every 30 seconds to keep the connection alive.
tool_call
Emitted for each request the MCP gateway handles and logs, including denied calls and non-tool methods.
serverId is the connection slug. action is the policy action: allow, deny, alert, or redact.
anomaly
Emitted when MCP anomaly detection fires.
type is rate_spike or destructive_pattern. severity is critical for destructive_pattern and high for rate_spike.
llm_call
Emitted for each request the LLM gateway processes.
action is the policy action. costCents is the cost of the call in cents.
llm_anomaly
Emitted when the LLM anomaly detector fires on a gateway request.
type is one of cost_spike, token_burn, response_length, model_shift, or error_rate. severity is low, medium, high, or critical. The message text varies by detector.
Session suspension does not emit an SSE event. When a session is suspended via the kill switch, a
session_suspended webhook is dispatched to any registered webhook endpoints. There is no session_update SSE event.Infrastructure
Each API instance delivers events to the clients connected to it. When Redis is configured, every instance also publishes events to an Upstash Redis channel (igris:events) and subscribes to it, so a client receives events emitted on any instance. Without Redis, a client only receives events emitted by the instance it is connected to. If the stream drops, EventSource reconnects on its own, and events emitted while you were disconnected are not replayed.