Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Read the session log

Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.

GET/api/experimental/session/{sessionID}/log
Path parameters
sessionIDobjectrequired
Query parameters
afterstring | any
followstring | any
Responses
200Success
idstring | anyrequired
Show properties
Any of:
string
string
any
any
eventstringrequired
dataSessionLogItemStreamrequired
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
404SessionNotFoundError
Any of:
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
SessionNotFoundError
_tagstringrequired
Allowed:SessionNotFoundError
sessionIDstringrequired
messagestringrequired
Request
curl -X GET "/api/experimental/session/%5Bobject%20Object%5D/log"
Response
{
  "id": "string",
  "event": "string",
  "data": "string"
}