Get a UserChat's sessions

Retrieve a list of session of UserChat with ID.

Parameter

Accessible via URL https://api.channel.io/open/v5/user-chats/{userChatId}/sessions and HTTP GET

๐Ÿ“˜

This method does currently accept application/json only.

ParameterExampleRequiredDescriptionParameter type
userChatId5e65fa8bc2409f0c1fd3RequiredID of UserchatPath

Example

GET https://api.channel.io/open/v5/user-chats/5e65fa8bc2409f0c1fd3/sessions

Response

Returns sessions along with related information.

{
  "sessions": [
    {
      "key": "string",
      "chatId": "string",
      "chatKey": "string",
      "updatedKey": "string",
      "unreadKey": "string",
      "channelId": "string",
      "alert": 0,
      "unread": 0,
      "watch": "all",
      "allMentionImportant": true,
      "readAt": 1656032152418,
      "receivedAt": 1656032152418,
      "postedAt": 1656032152418,
      "updatedAt": 1656032152427,
      "createdAt": 1656032152427,
      "version": 0,
      "id": "string",
      "personType": "string",
      "personId": "string",
      "chatType": "string"
    }
  ]
}