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

# Create a new chat session



## OpenAPI

````yaml post /chatbot/create-chat
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /chatbot/create-chat:
    post:
      tags:
        - chatbot
      summary: Create a new chat session
      operationId: ChatbotController_createChat
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChatDto'
      responses:
        '201':
          description: Chat created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateChatDto'
components:
  schemas:
    CreateChatDto:
      type: object
      properties:
        pathwayID:
          type: string
          description: Pathway ID for the chat session
          example: pathway-123
        chatbotID:
          type: number
          description: ID of the chatbot to create chat with
          example: 1
        request_data:
          type: object
          description: Initial variables accessible in pathway nodes via {{variable_name}}
          example:
            user_name: John Doe
            account_id: '12345'
      required:
        - pathwayID
        - chatbotID

````