Read data from a stream using catch-up, long-poll, or SSE modes.
-1 to read from the beginning, or a numeric offset.offset.cursor.sse for Server-Sent Events, long-poll for long-polling. Omit for catch-up read.live parameter. Returns all available data from the given offset immediately.| Status | Meaning |
|---|---|
200 | Data returned (catch-up or long-poll with data). |
204 | No new data at the requested offset (catch-up only). |
400 | Invalid offset or live mode. |
404 | Stream not found or expired. |
410 | Requested offset has been trimmed (data no longer available). |
Stream-Next-Offset, Stream-Cursor, ETag, Stream-Up-To-Date, Stream-Closed, and Content-Type.
event: data): stream payload in the data field. For binary streams, data is base64-encoded (controlled by the Stream-Sse-Data-Encoding header).event: control): JSON metadata including the current offset and stream state.: lines to keep the connection alive through proxies.