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}
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

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

Content type
Copy
Collapse all
{
  • "requestError":
    {
    • "serviceException":
      {
      • "messageId": "UNAUTHORIZED",
      • "text": "Unauthorized"
      }
    }
}

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Learn more
Service status

Copyright @ 2006-2025 Infobip ltd.