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.

Parameter

Example

Required

Description

Parameter type

userChatId

5e65fa8bc2409f0c1fd3

Required

ID of Userchat

Path

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"
    }
  ]
}