Stream events scoped to one Session thread.
GET /api/v1/cloud/sessions/{session_id}/threads/{thread_id}/stream
Streams public events for one thread as Server-Sent Events.
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID with the sess_ prefix |
thread_id | string | Thread ID with the sthr_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Accept | No | Use text/event-stream |
Last-Event-ID | No | If provided, the stream resumes after the specified event ID. Returns 400 if the event ID does not exist, has been archived, refers to a non-public internal event, or is not part of this thread. |
Example request
Stream format
: heartbeat comment lines periodically to keep the connection alive.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Last-Event-ID does not identify a valid public event in this session/thread (the event does not exist, has been archived, is a non-public internal event, or is not part of this thread) |
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Session or thread does not exist |