Skip to main content
POST
Subscribe to a running turn

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sessionId
string
required

Session identifier (.).

Minimum string length: 1
Example:

"01arz3ndektsv4rrffq69g5fav.g"

turnId
string
required

Turn identifier (..).

Minimum string length: 1
Example:

"01arz3ndektsv4rrffq69g5fav.g.ab12cd"

Body

application/json

Optional after_sequence_number to resume from (exclusive — events after this sequence_number). When omitted, Last-Event-Id is used if present.

after_sequence_number
integer
Required range: x >= 0

Response

Server-Sent Events stream of turn events (deltas and lifecycle).

type
enum<string>
required
Available options:
model.message
id
string
required

Unique identifier for the event

thread_id
string
required
created_at
string
required
content
name
string
refusal
string | null
reasoning_content
string
tool_calls
object[]
finish_reason
enum<string> | null
Available options:
stop,
length,
tool_calls,
content_filter,
function_call
usage
object