---
title: "Create conversation"
method: POST
path: "/chat/conversations"
---

# Create conversation

`POST /chat/conversations`

## Request

- Base URL: `https://api.closedloop.sh`
- URL: `https://api.closedloop.sh/chat/conversations`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/closedloop/apis/closedloop-ai-api/docs/chat/conversations/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new chat conversation

## Request body

- object
  - `title` string, required: Conversation title

## Response `201`

Conversation created successfully

- Conversation
  - `id` string, uuid
  - `title` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

---

[API](https://skmtc.dev/closedloop/apis/closedloop-ai-api.md) - [All operations](https://skmtc.dev/closedloop/apis/closedloop-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/closedloop/apis/closedloop-ai-api/revisions/20e04ae722ee?raw)
