---
title: "Invalidate customer session"
method: DELETE
path: "/livechat/1/widgets/{widgetId}/sessions/{sessionId}"
tags: ["channels", "live-chat"]
---

# Invalidate customer session

`DELETE /livechat/1/widgets/{widgetId}/sessions/{sessionId}`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/livechat/1/widgets/{widgetId}/sessions/{sessionId}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

This method enables you to invalidate an [authenticated Live Chat web session](https://www.infobip.com/docs/live-chat/users-and-authentication#web-authentication).
      Session invalidation is performed whenever you wish to explicitly terminate an authenticated session, for example on user log out or due to security concerns.

## Path parameters

- `widgetId` string, uuid, required
- `sessionId` string, required

## Response `204`

No Content

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
