Get chat messages
GET
/agent/chat/messagesRetrieves a list of chat messages for a given chat session
RequiresBearerauthentication
Query parameters
Chat session ID
Number of messages to return
Filter by one or more message roles. Multiple roles can be specified as a comma-separated string. If not specified, messages with all roles are returned.
Available roles:
user- Messages from the userassistant- Text responses from the AI assistantmodel- Function/tool call requests from the modelfunction- Function/tool call results
userassistantmodelfunctionReturns
Chat messages retrieved successfully
Response fields
Chat message ID
Chat session ID
Message role indicating the source/type of the message:
user- Messages from the userassistant- Text responses from the AI assistantmodel- Function/tool call requests to the modelfunction- Function/tool call results
userassistantmodelfunctionMessage content
Message created time
Message updated time
Function name
Function arguments
Function result
Message order
GETRequest
200 OKExample Response