Skip to main content
GET
Stream session events as Server-Sent Events

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

Last-Event-ID
string<uuid>

Exclusive lowercase canonical UUID event cursor used when after_event_id is absent. Malformed selected cursors return 400.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Path Parameters

sessionId
string<uuid>
required

Session id (UUID) whose events are streamed.

Query Parameters

after_event_id
string

Exclusive lowercase canonical UUID event cursor. Takes precedence over Last-Event-ID. Clients that set this query parameter must replace it with their latest event id, or remove it to use Last-Event-ID, on every reconnect. Malformed selected cursors return 400.

types
string

Comma-separated managed event type filter.

hydrate
enum<string>

Opt in to inline image hydration. Event payload hydration is independent and enabled by default.

Available options:
images
image_urls
enum<string>

Set to signed to add a short-lived url (and url_expires_at) to stored image blocks within the per-read signing budget. Omitted when signing is unavailable or the budget is exhausted; the authenticated managedAgentsGetSessionImage endpoint always works.

Available options:
signed
payloads
enum<string>

Set refs to stream external event stubs without resolving payload JSON.

Available options:
refs

Response

A UTF-8 server-sent event stream. Each canonical event frame carries one managed session event as JSON in its data field.

UTF-8 server-sent event wire stream. The JSON schema for each framed data value is declared by x-recursion-sse-data-schema.