Get Chat Session with Addressable
This request returns chat session information. The information includes the last messages of the session. This request has the same semantics as Get Chat Session but has a resource URL that contains the addressable object ID instead of the chat session object ID. Consequently, this operation can fail if the addressable is not chattable.
Resource
GET /addressables/<OID>/chat
Where OID
is the object ID of the addressable.
Parameters
None
Payload
None
Response
Context
Authorization |
User |
Errors
HTTP code | Xelion code | Description |
---|---|---|
404 |
10100 |
The addressable is not chattable or the addressable does not exist. |
Example
Request
GET https://xelion.nl/api/v1/master/addressables/31415926/chat
Response
{
"object": {
"participants": [
{
"iconId": "1590019",
"commonName": "Arnon Ron",
"oid": "1556377",
"objectType": "Person"
},
{
"iconId": "1566787",
"commonName": "Wim Bokkers",
"oid": "1557797",
"objectType": "Person"
}
],
"sessionType": "user",
"disabled": false,
"commonName": "Chat Arnon Ron <-> Sergey Novitsky",
"oid": "1588675",
"objectType": "XCCChatSession"
},
"links": [
{
"rel": "self",
"href": "https://xelion.nl/api/v1/master/chats/1588675",
"method": "GET"
}
]
}