Skip to main content
GET
Get Message History

Get Task Message History

Retrieve the complete message history for a task. This endpoint is designed for developers who want to render their own chat UI and manage conversation history independently.

Request

Path Parameters

Response

Response Fields

Message Object

For user messages with file uploads, the content field contains only the user’s message text - the file upload prefix is stripped and the files are listed in attachedFiles instead.

Attached File Object

Thought Object

Tool Call Object

Examples

Use Cases

Building a Custom Chat UI

Use this endpoint to hydrate your chat interface with the full conversation history:

Displaying File Attachments

Displaying Tool Executions

Errors