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 tracking 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.

Path Params
string
required
Query Params
integer
≥ 0
Defaults to 20
string
enum
Defaults to desc
Allowed:
integer
≥ 0
Defaults to 0
boolean
Defaults to false
boolean
Defaults to false
Headers
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json