Get External Chat Messages


This request retrieve chat messages of an external chat session. The messages are ordered by date in a descending order.

Resource

GET https://<HOST>/portal/chat/<TENANT>/gateways/<GATEWAY_ID>/sessions/<SESSION_ID>/messages

Where 'GATEWAY_ID' is the id of the gateway and 'SESSION_ID' is the id of the session.

Parameters

None

Payload

None

Response

List of objects of type External Chat Message

Context

Authorization

Authorized by token:
The Xelion token should be send in the Authorization header.

Errors

HTTP code Description

400

Missing tenant, gateway id

500

General error, gateway not found, session not found or not linked to this gateway

Example

Request
GET https://xelion.nl/portal/chat/master/gateways/1234567/sessions/2045858/messages
Response
[
    {
        "id": "2045894",
        "contents": "hallo",
        "creatorName": "peter",
        "date": "2022-10-14 12:38:55",
        "incoming": false,
        "read": true,
        "forwarded": false,
        "repliedChatOid": ""
    },
    {
        "id": "2045886",
        "contents": "hallo",
        "creatorName": "wes",
        "date": "2022-10-14 12:48:23",
        "incoming": true,
        "read": true,
        "forwarded": false,
        "repliedChatOid": ""
    }
]