---
title: "Delete a webchat session."
method: DELETE
path: "/webchat_sessions/{id}"
tags: ["Webchat"]
---

# Delete a webchat session.

`DELETE /webchat_sessions/{id}`

Deletes an existing webchat session by its ID.

## Path parameters

- `id` string, uuid, required

## Response `200`

Session successfully deleted.

- WebchatManagerSession — A webchat visitor session. Session.id doubles as the visitor's continuity token.
  - `id` string, uuid, required — The unique identifier of the session, and the visitor's continuity token. Returned from the `POST /sessions` or `GET /sessions` response.
  - `customer_id` string, uuid, required — The unique identifier of the associated customer. Returned from the `GET /customers` response.
  - `widget_id` string, uuid, required — The widget this session belongs to. Returned from the `POST /widgets` or `GET /widgets` response.
  - `status` 'active' | 'ended', required — The status of the session.
  - `tm_last_activity` string, date-time — Timestamp of the last activity on this session.
  - `tm_create` string, date-time — Timestamp when the session was created.
  - `tm_update` string, date-time — Timestamp when the session was last updated.
  - `tm_end` string, date-time — Timestamp when the session ended.

## Other responses

- `400` — Invalid request (INVALID_ARGUMENT).
- `401` — Authentication required (UNAUTHENTICATED).
- `403` — Insufficient permission (PERMISSION_DENIED).
- `404` — Resource not found (NOT_FOUND).
- `500` — Internal error (INTERNAL).

## Changes

- **2026-07-18** `d90e2d9717dc` — 1 warning
  - removed the optional property `welcome_message` from the response with the `200` status
- **2026-07-17** `37603aee58ea` — 1 info
  - added the optional property `welcome_message` to the response with the `200` status
- **2026-07-16** `39e5a5e6214c` — 1 info
  - endpoint added
- **2026-05-30** `995c56ba9219` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/voipbin/apis/voipbin-api/changes/webchat_sessions/:id/delete.md)

---

[API](https://skmtc.dev/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.dev/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/revisions/d90e2d9717dc/schema)
