---
title: "Create Session"
method: POST
path: "/api/chat/sessions"
tags: ["Chat"]
---

# Create Session

`POST /api/chat/sessions`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/chat/sessions`
- Auth: HTTP bearer

Create a new chat session.

## Request body

- CreateSessionRequest
  - `title` string

## Response `201`

Successful Response

- AppApiChatSessionResponse
  - `id` string, required
  - `title` string, required
  - `created_at` string, required
  - `updated_at` string, required
  - `last_message_preview` string, nullable
  - `message_count` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
