List Messages
Changed onRetrieve message history for an agent.
Request
- Base URLhttps://app.letta.com
- URLhttps://app.letta.com/v1/agents/{agent_id}/messages
- AuthHTTP bearer
Path parameters
Query parameters
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
Maximum number of messages to return
Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
Field to sort by
Group ID to filter messages by.
Whether to use assistant messages
The name of the designated message tool.
The name of the message argument.
Whether to include error messages and error statuses. For debugging purposes only.
Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
response property
items/oneOf[subschema #5: ToolCallMessage]/tool_calldeprecated
- info
- info
added the optional property
//to the response with the status - info
response property
items/oneOf[subschema #6: ToolReturnMessage]/statusdeprecated - info
response property
items/oneOf[subschema #6: ToolReturnMessage]/stderrdeprecated - info
response property
items/oneOf[subschema #6: ToolReturnMessage]/stdoutdeprecated - info
response property
items/oneOf[subschema #6: ToolReturnMessage]/tool_call_iddeprecated - info
response property
items/oneOf[subschema #6: ToolReturnMessage]/tool_returndeprecated
- info