---
title: "Create a new webchat session."
method: POST
path: "/webchat_sessions"
tags: ["Webchat"]
---

# Create a new webchat session.

`POST /webchat_sessions`

Creates a new webchat visitor session for the given widget. Always creates a brand-new session.

## Request body

- object
  - `widget_id` string, uuid, required — The widget to create the session for. Returned from the `POST /widgets` or `GET /widgets` response.

## Response `200`

Details of the created session.

- 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).
- `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/post.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/2f2bcffc5f29/schema)
