Subscribe to the Forward Session event stream via SSE.
HTTP 200 OK
Request Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer <PAT> |
| Accept | Yes | text/event-stream |
| Last-Event-ID | No | Resume the subscription after this Event ID. |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
session_id | string | Yes | Session ID. |
Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | No | - | Filter by Event type; comma-separated values are supported. |
types[] | string | No | - | Array-form Event type filter. |
include_tool_calls | boolean | No | true | Whether to include tool call events. |
include_thinking | boolean | No | true | Whether to include thinking events. |
Example request
Example response
HTTP 200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | SSE event ID, equal to the Event ID. |
event | string | Event type. |
data | object | Filtered Forward Event JSON. |
Errors
| HTTP | Type | Code | Trigger |
|---|---|---|---|
| 400 | invalid_request_error | invalid_event_cursor | Last-Event-ID does not belong to the current Session. |
| 404 | not_found_error | session_not_found | Session does not exist. |
| 401 | authentication_error | TOKEN_INVALID | PAT invalid or expired. |
Notes
-
Incremental streaming is controlled by
incremental_streaming_enabledat Session creation and cannot be temporarily enabled via this endpoint. - Unknown Event types are forwarded as envelope-only events when available.
-
include_thinking=falsefilters thinking events and recognizable thinking deltas. -
include_tool_calls=falsefilters tool call events and recognizable tool input/output deltas. - Session and Event data structure
- Create Session
- List event history