# getListOfChats

Description: Get the chat list.

Request example:

{
    "method" : "getListOfChats",
    "requestId" : "1"
}

Response example:

{
    "method": "getListOfChats",
    "requestId" : "1",
    "list": [
        {
            "chatId": "b1fc9f0f8eb7dfd8cc86d60699cb051f4ae7d776",
            "title": "Conference",
            "group": true
        },
        {
            "chatId": "b3b6e79f00677a63b545791fafca80d1119e56c3",
            "callId": "user@some.server",
            "group": false
        }
    ],
    "result": true
}

Parameter description:

  • chatId — Chat identifier

  • callId — the identifier of the user you chatted with

  • title — the chat name. The field is available only for a group chat.

  • group — Flag showing the type of chat (group or not)

  • requestId - a unique request identifier. You can learn more about it here.

See also: