List session events
GET
Returns durable agent events in ascending id order. /v1/sessions/{id}/eventsafter and before form an exclusive range; order chooses traversal. Page forward with after = previous lastId, or backward with before = previous firstId, while hasMore is true.Authorization
header
Authorization: Bearer <token>
An access token from Settings → Access tokens, with the scopes this call needs. Authentication
Path parameters
idstringrequiredQuery parameters
typesstringmessage.created,session.status), at most 64.toolsstringtypes. With only tools, includes only matching tool events. Tool events recorded before tool-name stamping always match; existing rows are not backfilled.afterstringbeforestringorderstring- Value in
- "asc" | "desc"
limitstringthreadIdstringincludeHeadIdstring | nullheadId on the response: the newest durable event id across the whole log at read time, unaffected by types/threadId filters. Costs one extra read per request; off by default.- Value in
- "true" | "false"
viewstring | nullResponses
Successapplication/json
dataarray<SessionEvent>requiredfirstIdnumber | nullrequiredlastIdnumber | nullrequiredafter for the next page)hasMorebooleanrequiredsettledThroughIdinteger- Range
- 0 to 9007199254740991
headIdnumber