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

# Create a conversation thread

> Create a new conversation thread.

Note: `chat_setting_id` has been deprecated, now use `agent_id` instead, `chat_settings_id` is still supported for back-compatibility purposes. If no `agent_id` nor `chat_setting_id` is provided, the default agent for the company is used.



## OpenAPI

````yaml /api-reference/openapi-v3.yaml post /api/v3/threads
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Files Processing
    description: Operations about files processing
  - name: Tags
    description: Operations about tags
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: User Groups
    description: Operations about user groups
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/threads:
    post:
      tags:
        - Threads
      summary: Create a conversation thread
      description: >-
        Create a new conversation thread.


        Note: `chat_setting_id` has been deprecated, now use `agent_id` instead,
        `chat_settings_id` is still supported for back-compatibility purposes.
        If no `agent_id` nor `chat_setting_id` is provided, the default agent
        for the company is used.
      operationId: api_v3_threads_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateThreadRequest'
            examples:
              CreateThreadRequest:
                value:
                  name: My new conversation
                  agent_id: 1
                  is_ephemeral: false
                summary: Create thread request
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateThreadRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateThreadRequest'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreadResponse'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    CreateThreadRequest:
      type: object
      properties:
        name:
          type: string
          maxLength: 255
        agent_id:
          type: integer
          description: >-
            ID of the agent to use. If not provided, uses the default agent for
            the company.
        chat_setting_id:
          type: integer
          description: >-
            DEPRECATED: Use 'agent_id' instead. ID of the chat setting to use.
            If not provided, uses the default agent for the company.
        is_ephemeral:
          type: boolean
          default: false
        tool_parameters:
          description: >-
            Global tool-specific parameters for all turns in this thread (e.g.,
            document_search.top_k). Can be overridden at turn level.
    ThreadResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        object:
          type: string
          default: thread
        name:
          type: string
          readOnly: true
        status:
          type: string
          readOnly: true
        ml_model:
          type: string
          readOnly: true
          nullable: true
        ml_model_name:
          type: string
          readOnly: true
          nullable: true
        agent_id:
          type: integer
        agent_name:
          type: string
          readOnly: true
          nullable: true
        creation_source:
          type: string
          readOnly: true
        is_read:
          type: boolean
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        is_ephemeral:
          type: boolean
          readOnly: true
        is_archived:
          type: boolean
        tool_parameters:
          readOnly: true
          nullable: true
          description: >-
            Global tool-specific parameters applied to all turns in this thread
            (e.g., document_search.top_k). Can be overridden at turn level.
      required:
        - agent_id
        - agent_name
        - created_at
        - creation_source
        - id
        - is_archived
        - is_ephemeral
        - is_read
        - ml_model
        - ml_model_name
        - name
        - status
        - tool_parameters
        - updated_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````