List messages
Threads
List messages
List messages in a thread.
GET
List messages
Returns all messages in a thread in chronological order. Use this after a run completes to read the agent’s response.
When the agent used file search, each retrieved chunk’s source tracing fields are appended to the assistant message content:
chunk_id, page, lines, and section. Use chunk_id to call the chunk endpoint for full Markdown provenance and the file_id of the source document.Authorizations
Authorization Bearer Token
Headers
Path Parameters
Query Parameters
Required range:
x >= 0Options for order query param in list endpoints.
Available options:
asc, desc Required range:
x >= 0Response
Successful Response
parts
(MessageTextPart · object | MessageReasoningPart · object | MessageFilePart · object | MessageDataPart · object | MessageToolCallPart · object | MessageToolErrorPart · object | MessageToolResultPart · object)[] | null
A text part persisted alongside a thread message.
- MessageTextPart
- MessageReasoningPart
- MessageFilePart
- MessageDataPart
- MessageToolCallPart
- MessageToolErrorPart
- MessageToolResultPart
Last modified on June 18, 2026