Skip to main content
GET
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive 403 mcp_not_enabled. See the preview overview.
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 with sessions:read.

Path parameters

string
required
The session id.

Query parameters

string
The cursor from the previous page. Omit it for the first page.
integer
default:"50"
Messages per page, from 1 to 200.

Response

Returns 200 with {"items": [...], "cursor": "..."}. cursor is null on the last page.
string
The message id.
string
user or assistant.
string
The question, or the answer in Markdown.
File[]
The message’s files: id, file_name, content_type, content_length and created_at.
string
completed, in_progress or error. A question is always completed.
string
ISO 8601 UTC. A question and its answer share the time the question was asked.

Errors