GET /v1/sessions/{session_id}/events
GET
/v1/sessions/{session_id}/eventsAuthorization
AuthorizationBearer token · headerrequiredPath parameters
session_idstring<uuid>requiredSession id
Query parameters
limitinteger<int64>min 1 · max 200
after_seqinteger<int64>Events with seq strictly greater.
before_seqinteger<int64>Events with seq strictly less.
orderOrderParamNewest first when omitted; the page starts at the end this names.
Allowed:
ascdescResponses
200One page, newest first unless order=asc, keyed by seq: pass next_cursor back as before_seq when descending and after_seq when ascending. Items are the typed event vocabulary; stored rows the wire cannot render are skipped, and the cursor still advances over them.
itemsSessionEventBody[]requiredShow propertiesHide properties
Array of
SessionEventBodyseqinteger<int64>requirednext_cursorinteger<int64> | nullrequired`None` on the last page. Otherwise the last fetched row's seq in the
direction of travel: pass it back as `before_seq` when descending and
as `after_seq` when ascending.
400Bad limit, order, or path parameter.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired403A workspace credential lacking session.read. A session token carries no permissions and never lands here.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired404No such session, or the caller cannot see it.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired