Retrieve all chat messages for a specific chatflow or agentflow. Supports filtering by chat session, date range, and feedback status.
Path Parameters
The chatflow or agentflow ID to retrieve messages for
Query Parameters
Filter messages by specific chat session ID
Sort order for messages. Options: ASC, DESC. Default: DESC
Filter messages created after this date (ISO 8601 format)
Filter messages created before this date (ISO 8601 format)
Filter by specific message ID
Filter by memory type used in the conversation
Filter to show only messages with feedback
Filter by feedback type: THUMBS_UP, THUMBS_DOWN
Page number for pagination. Default: 1
Number of results per page. Default: 50
Response
Unique identifier for the message
Message role: user or assistant
ID of the chatflow/agentflow
When the message was created
Source documents referenced in the response
Tools used to generate the response
Example Request
curl -X GET \
'https://your-flowise-instance.com/api/v1/chatmessage/abc123-def456-ghi789?chatId=session-xyz&sortOrder=DESC&limit=20' \
-H 'Authorization: Bearer YOUR_API_KEY'
Example Response
[
{
"id": "msg-001",
"role": "user",
"content": "What's the weather today?",
"chatflowid": "abc123-def456-ghi789",
"chatId": "session-xyz",
"memoryType": "buffer",
"sessionId": "sess-123",
"createdDate": "2024-01-20T15:30:00Z"
},
{
"id": "msg-002",
"role": "assistant",
"content": "It's sunny with a high of 72°F.",
"chatflowid": "abc123-def456-ghi789",
"chatId": "session-xyz",
"memoryType": "buffer",
"sessionId": "sess-123",
"usedTools": [{"tool": "weather_api", "input": "current weather"}],
"createdDate": "2024-01-20T15:30:05Z"
}
]
Error Responses
Unauthorized - Invalid or missing API key
Not Found - Chatflow/agentflow with specified ID not found
Precondition Failed - Missing required ID parameter
Internal Server Error - Error retrieving messages