Skip to main content
GET
TypeScript

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Conversation ID.

Query Parameters

includeDeltas
boolean

Also stream transient assistantMessageDelta events: the assistant's text as it is generated, ahead of the durable assistantMessage. Off by default.

Response

A stream of Server-Sent Events

WidgetEvent is the visitor-facing event vocabulary. It MIRRORS the internal conversation event variants — same granularity, same discriminator names — with slimmed messages holding exactly what a widget UI needs. Internal events map to these through an explicit, exhaustive server-side projection; internal-only types (context compaction, memory reads, sub-agent bookkeeping) have no widget variant and are dropped. Nothing here carries tool configuration, server identities, operator details, or internal error strings. Tool arguments cross this boundary only when an enabled tool set rule, or the tool itself, explicitly opts the tool in.

type
enum<string>
required
Available options:
userMessage
userMessage
object
required

WidgetUserMessageEvent is a message from the visitor.

id
string
required
read-only

Unique event id (prefixed ULID). Only durable objevt_ IDs are emitted as SSE id: fields and accepted as Last-Event-ID reconnect cursors. Transient heartbeats (hb_) and text deltas (dlt_) carry their IDs in this payload only.

conversationId
string
required
read-only

The conversation this event belongs to.

Example:

"obj_01HXKD2E5NQM3T9AYWCFQAZGFV"

createdAt
string<date-time>
required
read-only
sequence
integer<int32>
read-only

The event's commit-ordered position in its conversation, starting at

  1. Sequences are gapless, and streams deliver events in sequence order. Unset on live-only heartbeats and assistant message deltas; a delta's place is after the event at its afterSequence.