Sessions
List messages
Page through a conversation’s messages, oldest first.
GET
Returns a page of a session’s messages, oldest first. Each message is a user question or an assistant answer, with the files attached to it. A question lists the files the user attached; an answer lists the files the agent produced. Only files you can read are listed. Answers are Markdown. A finished answer with no text and no files, such as a step where the agent only used tools, is left out.
An answer that is still being written has
status: "in_progress" and partial content. To wait for an answer to a question you asked, poll Get question status rather than this endpoint.
Authentication
Requires an API key, or an OAuth token withsessions:read.
Path parameters
Query parameters
Response
Returns200 with {"items": [...], "cursor": "..."}. cursor is null on the last page.