List Conversation Messages
Available for: Chatflow
Returns a conversation’s history in scroll-loading form. Without first_id, the newest limit messages come back in chronological order; with first_id, the messages before it.
Standard API equivalent: List Conversation Messages. Differences:
useris required.- These response fields never vary:
feedbackis alwaysnull.retriever_resourcesis always empty.agent_thoughtsis always empty.parent_message_idis always the all-zero UUID.
- Error codes differ.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Query Parameters
End-user identifier, defined by your app and unique within it. Conversations belong to the app, the environment, and this user together; later reads and changes must send the same value. See End User Identity.
1 - 255ID of the conversation to read. Get conversation IDs from List Conversations.
Pagination cursor: the id of the first message on the current page. Pass it to fetch the previous (older) page; omit to fetch the latest messages.
Number of chat history messages to return per request.
1 <= x <= 100