Connection URL
Last-Event-ID header for reconnection replay. Pass the last event id you received; the stream resumes from the event after that ID. Event-type query filters are not currently supported.
Incremental streaming is enabled per Session at creation time:
SSE format
Each event uses standard SSE fields:Common Event Flow
session.thread_created, session.thread_status_running, agent.thread_message_sent, and agent.thread_message_received.
Note: Publicagent.thinkingevents only carryid,processed_at, andtype. The reasoning content is intentionally not exposed; treat the event as a marker that the Agent paused to reason. Several other agent-generated events also omitprocessed_at— treat the field as optional when parsing.
Incremental events
Whenincremental_streaming_enabled is true, clients may receive these top-level incremental event types:
agent.message_start, agent.content_block_start, agent.content_block_delta, agent.content_block_stop, agent.message_delta, and agent.message_stop.
A typical assistant message increment appears in this order:
agent.content_block_delta.delta.type, for example:
agent.tool_result events.
Connection lifecycle
session.status_idleindicates the current turn finished. The connection should stay open and wait for the next turn.session.status_terminatedandsession.deletedare terminal — the client should stop reconnecting; further events will not arrive.session.status_rescheduledis a transient signal; the stream may briefly disconnect, then reconnect once the runtime is ready.- For network drops mid-stream, reconnect with the
Last-Event-IDheader set to the most recently received event ID; the server will replay events after that point.
Tool Responses
When the stream emits anagent.tool_use that requires confirmation, send user.tool_confirmation to POST /api/v1/cloud/sessions/{session_id}/events with the tool event ID:
agent.custom_tool_use, execute the custom tool in your client and send user.custom_tool_result.
Event History
Use the list endpoint for historical events and pagination:data and next_page. See List events and Session schemas.