Get sessions in a Group

GET sessions via groupId

Retrieve a list of sessions within a Group by id

Parameter

Accessible via URL https://api.channel.io/open/v4/groups/{groupId}/sessions and HTTP GET

Example

GET https://api.channel.io/open/v4/group/1234/sessions

๐Ÿ“˜

This method accepts application/json

ParameterExampleRequiredDescriptionParameter type
groupName1234RequiredId of GroupPath

GET sessions via groupName

Retrieve a list of sessions within a Group by name.

Parameter

Accessible via URL https://api.channel.io/open/v4/groups/@{groupName}/sessions and HTTP GET

Example

GET https://api.channel.io/open/v4/group/@justgroup/sessions

๐Ÿ“˜

This method accepts application/json

ParameterExampleRequiredDescriptionParameter type
groupNamejustgroupRequiredName of GroupPath

Response

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": 1624422354163,
      "receivedAt": 1624422354163,
      "postedAt": 1624422354163,
      "updatedAt": 1624422354079,
      "createdAt": 1624422354055,
      "version": 0,
      "id": "string",
      "chatType": "string",
      "personType": "string",
      "personId": "string"
    }
  ]
}