Get a UserChat's sessions
Retrieve a list of session of UserChat
with ID.
Parameter
Accessible via URL https://api.channel.io/open/v3/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 | Path |
Example
GET https://api.channel.io/open/v3/user-chats/5e65fa8bc2409f0c1fd3/sessions
Response
Returns sessions along with related information.
{
"sessions": [
{
"id": "String",
"channelId": "String",
"chatType": "String",
"chatId": "String",
"personType": "String",
"personId": "String",
"createdAt": 1527207802758,
"alert": 0,
"unread": 0,
"watch": "String",
"updatedAt": 1527207802765,
"visible": true,
"bookmark": false,
"postedAt": 1527207802758
}
]
}
Updated about 2 years ago