---
title: "Create New Chat Session"
method: POST
path: "/chat/create-chat-session"
tags: ["public"]
---

# Create New Chat Session

`POST /chat/create-chat-session`

## Request body

- ChatSessionCreationRequest
  - `persona_id` integer
  - `description` string, nullable
  - `project_id` integer, nullable

## Response `200`

Successful Response

- CreateChatSessionID
  - `chat_session_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-01-06** `2d941ea53eb3` — 3 info
  - api tag `public` added
  - added the new optional request property `project_id`
  - the response property `chat_session_id` became required for the status `200`
- **2025-08-21** `9321c45d93b5` — 1 breaking, 1 warning, 1 info
  - the response property `chat_session_id` became optional for the status `200`
  - removed the request property `project_id`
  - api tag `public` removed

[Change history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/chat/create-chat-session/post.md)

---

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