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

# Create a new conversation.

> **Required scope:** write

**Required scope:** `write`

### Request body

`CreateConversationRequest`

<ParamField body="metadata" type="object">
  Optional metadata object
</ParamField>

<ParamField body="title" type="string">
  Optional title (defaults to 'New chat')
</ParamField>

<ParamField body="workflow_id" type="string">
  Optional workflow ID (defaults to 'support\_concierge')
</ParamField>

### Response

`Conversation`

<ResponseField name="archived_at" type="string">
  Archive timestamp (RFC3339), if soft-deleted
</ResponseField>

<ResponseField name="created_at" type="string" required>
  Creation timestamp (RFC3339)
</ResponseField>

<ResponseField name="id" type="string" required>
  Unique conversation ID
</ResponseField>

<ResponseField name="metadata" type="object" required>
  Arbitrary metadata
</ResponseField>

<ResponseField name="session_id" type="string">
  Linked reasoning session ID
</ResponseField>

<ResponseField name="tenant_id" type="string" required>
  Tenant (organization) that owns this conversation
</ResponseField>

<ResponseField name="title" type="string" required>
  Human-readable title
</ResponseField>

<ResponseField name="updated_at" type="string" required>
  Last update timestamp (RFC3339)
</ResponseField>

<ResponseField name="user_id" type="string">
  Optional user who created the conversation
</ResponseField>

<ResponseField name="workflow_id" type="string" required>
  Workflow ID controlling agent behavior
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `201` | Conversation created                               |
| `400` | Invalid request                                    |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `503` | Database not configured                            |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/conversations' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "metadata": null,
    "title": "string",
    "workflow_id": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "archived_at": "string",
    "created_at": "string",
    "id": "string",
    "metadata": null,
    "session_id": "string",
    "tenant_id": "string",
    "title": "string",
    "updated_at": "string",
    "user_id": "string",
    "workflow_id": "string"
  }
  ```
</ResponseExample>
