# Create conversation

```http
POST /conversations
```

Start a conversation in a project when a user or an agent opens a new thread, optionally with a first user message; a retry with the same idempotency key returns the same conversation. Requires project.conversations.create.

## Request body

| Field               | Type   | Required | Description                                                     |
| ------------------- | ------ | -------- | --------------------------------------------------------------- |
| `project_reference` | string |          | Project UUID or slug                                            |
| `type`              | string |          |                                                                 |
| `title`             | string |          |                                                                 |
| `idempotency_key`   | string |          |                                                                 |
| `metadata`          | object |          |                                                                 |
| `initial_message`   | object |          | First user message, persisted atomically with the conversation. |
| `project_id`        | string |          |                                                                 |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 201    | Created conversation                                                                                        |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 413    | Payload too large                                                                                           |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
