GET /v1/sessions/{session_id}/messages - List messages (PRIMARY data)
GET /v1/sessions/{session_id}/messages
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Session ID (prefixed, e.g., sess_…)
Responses
Section titled “ Responses ”List of messages
Response wrapper for list endpoints.
All list endpoints return responses wrapped in a data field.
object
Array of items returned by the list operation.
Message - primary conversation data (API response)
object
Array of content parts
Text content
object
Image content (base64 or URL)
object
Image file content (reference to uploaded image by ID)
object
Original filename (for display)
ID of the uploaded image (format: img_{32-hex})
Example
img_01933b5a00007000800000000000001Tool call content (assistant requesting tool execution)
object
Tool result content (result of tool execution)
object
ID of the tool call this result corresponds to
Runtime controls (model, reasoning, etc.)
object
Model ID to use for this message (format: model_{32-hex}). Overrides session and agent model settings.
Example
model_01933b5a00007000800000000000001Unique message ID (format: message_{32-hex})
Example
message_01933b5a00007000800000000000001Message-level metadata (locale, etc.)
Message role in the conversation
Session ID this message belongs to (format: session_{32-hex})
Example
session_01933b5a00007000800000000000001Invalid ID format
Session not found
Internal server error