Invalidate customer session
This method enables you to invalidate an authenticated Live Chat web session. Session invalidation is performed whenever you wish to explicitly terminate an authenticated session, for example on user log out or due to security concerns.
Please log in to see full path URL. Learn why.
delete
/livechat/1/widgets/{widgetId}/sessions/{sessionId}
Authorizations:
Scopes:
path Parameters
widgetId required | string <uuid> Unique identifier of your widget. You can obtain the identifier from the widget configuration page or from the widget installation snippet. |
sessionId required | string Unique identifier of user session to be invalidated. For more information on session identifiers, see the SID parameter in personalization token documentation. |
Responses
204
No Content
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
Request samples
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
Example
cURL
Copy
curl -L -g -X DELETE 'https://{baseUrl}/livechat/1/widgets/{widgetId}/sessions/{sessionId}' \ -H 'Authorization: {authorization}' \ -H 'Accept: application/json'
Response samples
- 401
- 403
- 404
- 500
Content type
application/json
Copy
Collapse all {- "requestError": {
- "serviceException": {
- "messageId": "UNAUTHORIZED",
- "text": "Unauthorized"
}
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See