List Messages
Retrieve message history for an agent.
Authentication
AuthorizationBearer
Header authentication of the form Bearer <token>
Path parameters
agent_id
The ID of the agent in the format ‘agent-<uuid4>’
Query parameters
before
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
after
Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
limit
Maximum number of messages to return
order
Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
Allowed values:
order_by
Field to sort by
group_id
Group ID to filter messages by.
use_assistant_message
Whether to use assistant messages
assistant_message_tool_name
The name of the designated message tool.
assistant_message_tool_kwarg
The name of the message argument.
include_err
Whether to include error messages and error statuses. For debugging purposes only.
Response
Successful Response
SystemMessage
OR
UserMessage
OR
ReasoningMessage
OR
HiddenReasoningMessage
OR
ToolCallMessage
OR
ToolReturnMessage
OR
AssistantMessage
OR
ApprovalRequestMessage
OR
ApprovalResponseMessage