GET
/conversationsList Conversations
Available for: Chatflow, Agent, Chatbot, Legacy Agent apps.
Lists an end user's conversations, most recently active first.
userstringoptional
End-user identifier, defined by your app and unique within it. See [End User Identity](/en/api-reference/guides/end-user-identity).
last_idstringoptional
Pagination cursor: the `id` of the last conversation on the current page. Omit to fetch the first page.
limitintegeroptional
Number of records to return.
sort_bystringoptional
Field to sort by. Prefix with `-` for descending order.
200Successfully retrieved conversations list.
dataarray<object>optional
List of conversations.
has_morebooleanoptional
Whether there are more conversations.
limitintegeroptional
Number of items per page.
400`not_chat_app` : App mode does not match the API route.
One documented failure
not_chat_appPlease check if your app mode matches the right API route.
not_chat_app
404`not_found` : Last conversation does not exist (invalid `last_id`).
One documented failure
not_foundLast Conversation Not Exists.
not_found
Error handling
A 400 is returned: not_chat_app : App mode does not match the API route. A 404 is returned: not_found : Last conversation does not exist (invalid last_id).