Agent

Get session messages

Get all messages in an agent session.

get/api/v0/agent/sessions/{session_id}/messages

Path parameters

session_idstring uuid required

Query parameters

after_sequenceinteger nullable

Only return messages with sequence_number greater than this value.

Only return messages with sequence_number greater than this value.

Response

Successful Response

idstring uuid required

The ID of the message.

rolestring required

The role of the message sender. Options: 'user', 'assistant', 'tool'.

contentstring nullable

The content of the message.

tool_callsobject[] nullable

Tool calls for assistant messages.

tool_call_idstring nullable

Tool call ID for tool result messages.

sequence_numberinteger required

Ordering sequence number.

created_atstring date-time required

When the message was created.

Changes

No recorded changes to this endpoint across all 1 revision of this API.