Get a UserChat's sessions

Retrieve a list of session of UserChat with ID.

Parameter

Accessible via URL https://api.channel.io/open/v4/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/v4/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",
      "readAt": 1624414654060,
      "receivedAt": 1624414654060,
      "postedAt": 1624414654060,
      "updatedAt": 1624414654046,
      "createdAt": 1624414654035,
      "version": 0,
      "id": "string",
      "chatType": "string",
      "personType": "string",
      "personId": "string"
    }
  ]
}