Skip to main content
A session is a conversation: the traces with one sessionId. The session of a trace is the sessionId of its root span, or else of its earliest span that has one. Right: read.

Find sessions

POST /v1/sessions/find returns sessions in pages, newest first.
object
default:"{}"
string
default:"newest"
"newest" or "oldest", by the start of the session. Ties: the session id.
integer
default:"50"
At most 10,000. 0 returns only the count.
string
The nextCursor of the page before (Lists and cursors).
integer
Every matching session, not only the ones of this page.
object[]
string | null
The cursor of the next page. null on the last page.
firstInput and lastOutput follow the preview rule of trace lists: the text of the root span, or else of another span of the trace.

Get one session

GET /v1/sessions/:id returns {"session": session, "traces": [trace]}: the session row, and every trace of the session, oldest first (by start, then trace id). No trace has this session id: 404.
string
required
The session id.
The traces have the fields of a trace. For a very large session, page /v1/traces/find with filter.sessionId instead. The scores on a session itself: GET /v1/sessions/:id/scores.

Sessions and scores

A guide with real sessions and scores.

Scores

Write and read scores on a session.