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
Parameter | Example | Required | Description | Parameter type |
---|---|---|---|---|
groupName | 1234 | Required | Id of Group | Path |
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
Parameter | Example | Required | Description | Parameter type |
---|---|---|---|---|
groupName | justgroup | Required | Name of Group | Path |
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"
}
]
}
Updated about 1 year ago