Get session messages
Proxies a page of the session's chat history live from a daemon holding it — the recording daemon, or a member of the shared store it was written to; 503 when none is reachable. With view=roots it reads a coordinator page's main timeline: the session's rows without the coordinator's posts in threads, each reply in a thread marked with its root's id in thread, and threads, the footers of the threads those rows start or reply in (and, on a page after after, those that changed). A footer of a thread a task holds keeps its excerpts and the task's title only where the caller may view that task's session, and says so in readable. 409 DAEMON_FEATURE_MISSING when view=roots reaches a daemon that cannot serve it. Nothing is stored by this call.
Authorization
bearerAuth In: header
Path Parameters
Query Parameters
^\d+$0 < value <= 200Value in
- "roots"
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/sessions/string/messages"{ "sessionId": "string", "messages": [ { "seq": 0, "sender": "string", "senderName": "string", "senderAvatarUrl": "http://example.com", "senderUserId": "string", "senderAgentId": "string", "trustedAgentBot": true, "ts": "string", "eventTimeUs": 0, "postId": "string", "kind": "string", "text": "string", "attachments": [ { "name": "string", "mimeType": "image/png", "data": "string" } ], "sharedImage": { "attachment": { "name": "string", "mimeType": "image/png", "data": "string", "width": 1, "height": 1 }, "original": { "kind": "inline" }, "revision": 0 }, "toolCallId": "string", "toolStatus": "string", "toolKind": "string", "body": "string", "bodyTruncated": true, "bodyBytes": 0, "thread": "string", "handedTo": "string" } ], "nextCursor": "string", "liveCursor": "string", "liveMore": true, "threads": [ { "rootId": "string", "rootExcerpt": "string", "replies": 0, "lastReplyAt": "string", "lastReply": { "sender": "string", "senderName": "string", "senderAvatarUrl": "string", "senderUserId": "string", "senderAgentId": "string", "excerpt": "string" }, "participants": [ { "sender": "string", "senderName": "string", "senderAvatarUrl": "string", "senderUserId": "string", "senderAgentId": "string" } ], "task": { "sessionId": "string", "title": "string", "state": "open", "starting": true }, "running": true, "readable": true } ]}