Closes an active chat session. Public endpoint called by the widget when the visitor closes the chat; no authentication required. Idempotent — already-closed or missing sessions return success.
Request
Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Path Params
Responses
🟢200
application/json
Session closed (or already closed).
Bodyapplication/json
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.snakk.ai/api/chat/session//close' \
--header'X-API-Key: <api-key>'