/api/platform-status/events to receive a real-time stream of Icinga 2 platform health updates. The endpoint uses Server-Sent Events (SSE) and keeps the connection open, pushing new health events to your client as they arrive. The connection closes only when you disconnect or the server triggers an abort.
Method: GETPath:
/api/platform-status/eventsAuth: Session cookie (any authenticated user — no specific capability required)
Response Format
The response usesContent-Type: text/event-stream. Each event is delivered as:
Accept header — the endpoint always streams text/event-stream.
Connecting from a Browser
Use the browser’s built-inEventSource API with withCredentials: true so that your session cookie is sent automatically with the request.
In browser environments,
withCredentials: true sends your session cookie automatically. In Node.js or curl, pass the cookie manually in the Cookie header: -H 'Cookie: sb-access-token=YOUR_TOKEN'.Closing the Connection
Callsource.close() when you no longer need the stream. The server detects the client disconnect via AbortSignal and tears down the upstream Icinga subscription, so you are not billed for idle connections.