---
title: "Create a chat session"
method: POST
path: "/chat/sessions"
---

# Create a chat session

`POST /chat/sessions`

Creates a new chat session for the organization.

## Request body

- CreateChatSessionInput
  - `contact_id` string, uuid
  - `channel` object
    - `type` 'web' | 'email' | 'phone_voice' | 'slack' | 'sms' | 'whatsapp' | 'instagram' | 'messenger' | 'api' | 'web_voice', required
  - `verified` boolean, nullable
  - `custom_data` object — Session-level custom data to store on the chat session.
  - `contact` object — Contact to associate with the session. When provided (and no contact_id is given) a contact is created/updated and linked to the session; its custom_data is persisted on the contact. Honors the top-level `verified` flag — verified contacts write to custom_data, otherwise to non_verified_custom_data.
    - `email` string, email
    - `name` string
    - `phone_number` string
    - `custom_data` object — Custom data to store on the contact for this session.

## Response `200`

Default Response

- CreateChatSessionOutput
  - `id` string, uuid, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/versions/57b06b52302d/schema)
