Server-sent events for one passenger session
Opens a text/event-stream keyed by the server-resolved {airlineId}#{sessionId} — the route’s {id} segment is an untrusted LOCATOR only (already validated key-safe server-side, never a trust assertion); airline_id always derives from the authenticated credential. A response-start failure (including the caller already having disconnected) fails the request closed as a normal JSON error, never mid-stream. Emits an append-only audit record immediately AFTER the response has started — it certifies the stream actually opened, never predicts that it will; a fault recording it at that point degrades to the terminal ‘event: error’ frame below rather than a JSON error, since headers are already flushed. A ’: heartbeat’ comment line (15-30s) keeps intermediate proxies from timing out the connection; once the stream has started, a mid-stream fault becomes a terminal ‘event: error’ SSE frame, never a JSON ApiError. Optional ‘since’ query param (a non-negative integer cursor, default 0) replays buffered frames before tailing live.
Authentication
OAuth authentication of the form <token>.
Path parameters
The session locator — an untrusted LOCATOR only (never a trust assertion); validated key-safe server-side before this handler runs, failing closed (400) otherwise.
Query parameters
Optional non-negative integer cursor; replays buffered frames after this point before tailing live. Omitted (or 0) replays everything buffered.