List thread messages
Internal Endpoints
List Thread Messages
GET
List thread messages
Error steps from the agent (such as inference failures or tool errors) are surfaced as messages with
role: "agent", where the content field contains the error description.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The API version to use for this request. The latest version is 2026-03-11.
Available options:
2026-03-11 Path Parameters
The ID of the thread.
Query Parameters
Whether to include verbose agent output (thinking, tool calls, tool results). Defaults to true.
Filter messages by role (user or agent).
Available options:
user, agent If supplied, this endpoint will return a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.
The number of items from the full list desired in the response. Maximum: 100
Required range:
1 <= x <= 100