Skip to main content
GET
Read a session's transcript

Parámetros de ruta

sessionId
string<uuid>
requerido

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
predeterminado:25

Maximum items per page.

Rango requerido: 1 <= x <= 100

Respuesta

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[]
requerido
limit
integer
requerido
Rango requerido: x >= 1
hasMore
boolean
requerido

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
requerido

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
requerido

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.