> ## Documentation Index
> Fetch the complete documentation index at: https://docs.personal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Conversation

> Open a new conversation with an assistant

## Overview

Opens a conversation (thread) with an assistant. Pass the returned `conversation_id` to [Chat](https://docs.personal.ai/composer_apis/endpoint/agent-chat.md) to talk in it.

Operation name: `conversation.create`. Member keys can call it.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Headers

**Content-Type** `string` *required*

Must be set to application/json

## Body

**agent\_slug** `string` *required*

The assistant the conversation is with.

```json Example theme={null}
"agent_slug": "my-assistant"
```

**title** `string`

A title for the conversation.

```json Example theme={null}
"title": "Weekly planning"
```

**subject\_id** `string`

The id of the person the conversation is with. Defaults to the caller.

**kind** `string`

`normal` (default) or `debug`.

```json Example theme={null}
"kind": "normal"
```

```json Example Request theme={null}
{
  "agent_slug": "my-assistant",
  "title": "Weekly planning"
}
```

***

## Response

**conversation\_id** `string`

The new conversation's id.

```json Example Success Response theme={null}
{
  "conversation_id": "9a2b7c1e-4d3f-4e8a-b6c5-1f0e2d3c4b5a"
}
```

***

## Example cURL

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/conversation.create' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{"agent_slug": "my-assistant", "title": "Weekly planning"}'
```

***

## Error Codes

| Code | Description |
| - | - |
| 400 | The body doesn't match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn't allowed to call this operation |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.