Skip to main content
GET
Read a session's transcript

Parâmetros de caminho

sessionId
string<uuid>
obrigatório

The session's id.

Parâmetros de consulta

cursor
string

Opaque pagination cursor from a previous page's nextCursor or prevCursor.

Maximum string length: 1024
limit
integer
padrão:25

Maximum items per page.

Intervalo obrigatório: 1 <= x <= 100

Resposta

One page of transcript entries, oldest first.

One page of a session's transcript, oldest first, plus the seam a client attaches the live event stream at.

items
object[]
obrigatório
limit
integer
obrigatório
Intervalo obrigatório: x >= 1
hasMore
boolean
obrigatório

Whether more entries already exist after this page. False does not mean the transcript is finished — an append-only log always can grow — it means nothing more had been written when the page was read.

nextCursor
string
obrigatório

Where the next read resumes. Always present, including on the last page: a client that has caught up keeps it and re-reads from it later to collect whatever committed in between.

lastEventId
string
obrigatório

The event-stream position this page was read at — the id of the newest event this session had at the moment the entries were read, in the same database snapshot. Subscribe to GET /v1/events for this session with Last-Event-ID set to the last page's value and the stream continues exactly where the transcript stops. "0" when the session has no events at all.