End External Chat Session


This request is called when the external chat session can be ended. The session will be ended and no new messages can sended anymore.

Resource

POST https://<HOST>/portal/chat/<TENANT>/gateways/<GATEWAY_ID>/sessions/<SESSION_ID>/close

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

Parameters

None

Payload

None

Response

None

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
POST https://xelion.nl/portal/chat/master/gateways/1234567/sessions/2045858/close