Skip to main content
GET
Stream a turn

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Executor-Until
string

With executor, the executor's own end, as RFC 3339 or unix milliseconds.

Last-Event-ID
string

The id of the last frame the reader applied, as the SSE reconnect sends it. Read only when after is absent.

Path Parameters

instanceSlug
string
required

The conversation instance's slug.

conversationID
string
required

The conversation's id (a UUID).

turnID
string
required

The turn's id (a UUID).

Query Parameters

end_user
string

Required. The end user the conversation belongs to.

executor
string

An executor id: the subscription is also the turn's executor claim. The first line answers : executor <epoch>, : executor held or : executor sealed; held and sealed still stream.

after
string

Resume after this frame id, a non-negative integer. When absent, Last-Event-ID is used; when both are absent the stream starts at the first frame.

Response

An event stream. Each message carries id (the resume cursor), event (the frame type) and data (one TurnFrame as JSON). : ka comments keep an idle stream open; a final : end comment closes the server's window, after which the reader resubscribes with after= its last id if it needs more.

One frame of the stream, discriminated by type.

attachments
object[] | null
required
message_id
string
required
seq
integer<int64>
required

The frame's sequence number in the turn, from 1, strictly increasing; also the id line. A replay after a seal may skip withdrawn numbers.

turn_id
string
required

The turn's id.

type
enum<string>
required

The frame type; also the event line.

Available options:
attachment