External Chat Session Websocket


This request is used to get the websocket connection URL for the exernal chat session events.
When connected events are sended over the websocket connection about the session (new chats, read events, …​).

Resource

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

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

Parameters

None

Payload

None

Response

Object Response < string >

The websocket connection URL

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/websocket
Response
{
    "object": "wss://arno.xelion.nl/websocket/-1/1816134/2045869/FTEby8WCyGkcAxLz"
}