Agent Chat APIList chats

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 URLPOST https://app.staging.mlive.chat/v1/agent/action/list_chats
Who can call itBots, with a bot token (mlcb_).

Request body

application/json

  • filtersobject

  • filters.activeboolean or null

  • filters.group_idsarray of integer

    Up to 200 items.
  • filters.include_chats_without_threadsboolean

  • sort_orderstring

    One of asc, desc. Default "desc".
  • limitinteger

    1 to 100. Default 10.
  • page_idstring

Response

200 · application/json

OK.

  • chats_summaryarray of LCChatSummaryrequired

  • found_chatsintegerrequired

  • next_page_idstring

    Only when there is a next page.
  • previous_page_idstring

    Only when there is a previous page.

Errors

  • default