Chats
List chats
Summaries of the chats you can see, newest first by default: each with its latest thread, the last event of each type and the people in it.
A bot sees only chats assigned to it. filters.active keeps open (or closed) chats, filters.group_ids chats in those groups. Pages carry the first request's filters in page_id, so send nothing else with it.
POST/v1/agent/action/list_chats
Specifics
| Method URL | POST https://app.staging.mlive.chat/v1/agent/action/list_chats |
|---|---|
| Who can call it | Bots, with a bot token (mlcb_). |
Request body
application/json
filtersobjectfilters.activeboolean or nullfilters.group_idsarray of integerUp to 200 items.filters.include_chats_without_threadsbooleansort_orderstringOne ofasc,desc. Default"desc".limitinteger1 to 100. Default10.page_idstring
Response
200 · application/json
OK.
chats_summaryarray of LCChatSummaryrequiredfound_chatsintegerrequirednext_page_idstringOnly when there is a next page.previous_page_idstringOnly when there is a previous page.
Errors
- default
Nothing found. Try a method name, such as send event.