Skip to main content
GET
Stream Session Thread Events
Every request requires ?beta=true.
The response uses text/event-stream. Reconnect after disconnects and treat event deltas as best-effort previews until the final event arrives.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
anthropic-beta
string

Path Parameters

session_id
string
required

Path parameter session_id

thread_id
string
required

Path parameter thread_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true
event_deltas[]
enum<string>[]

When set, this connection also receives streaming deltas (event_start, event_delta) while an event is being produced, before the event itself arrives. Deltas are best-effort; when the final event is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no final event โ€” its terminal span.model_request_end closes the preview. Accepts one or more event types to preview and may be repeated: agent.message streams content_delta fragments; agent.thinking is start-only โ€” a signal that the agent has begun extended thinking, concluded by the agent.thinking event itself. Only previews of the requested event types are sent.

EventDeltaType enum

Available options:
agent.message,
agent.thinking

Response

Successful response (OK)

A user message event in the session conversation.

type
enum<string>
required
Available options:
user.message
Example:

"user.message"

id
string
required

Unique identifier for this event.

Example:

"sevt_011CZkZGOp0iBcp4kaQSihUmy"

content
object[]
required

Array of content blocks comprising the user message.

Regular text content.

Example:
Example:
processed_at
string<date-time> | null

Timestamp when the agent finished processing this message.

Example:

"2026-03-15T10:00:00Z"