Skip to main content
 print this page

List messages in a project thread

GET 

/ai/projects/:project_id/threads/:thread_id/messages

Returns the conversation history of a thread — the user turns, the assistant turns, and the intermediate rows an agent produces such as thoughts, plans and charts. You need at least read-only access to the project. Chart messages carry a presigned URL to the rendered plot in Content instead of the stored file key; that URL expires eight hours after the response is built. Results are paged, oldest first by default. Increase offset by limit while next_available is the string "yes" and stop when it is "no".

Request

Responses

The messages on this page, together with count (messages in this response), total_count (messages matching the request before paging) and next_available. Page through by increasing offset by limit while next_available is the string "yes"; stop when it is "no". next_available is a string, not a boolean.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers
    Strict-Transport-Security