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

# Create a new web chat thread

> Create a new chat thread for web-based conversations. Returns thread ID and authentication token.



## OpenAPI

````yaml post /api/v1/chat/threads
openapi: 3.0.0
info:
  version: 1.0.0
  title: Feather AI API
servers:
  - url: https://prod.featherhq.com
    description: Production environment
security: []
paths:
  /api/v1/chat/threads:
    post:
      tags:
        - Chat
      summary: Create a new web chat thread
      description: >-
        Create a new chat thread for web-based conversations. Returns thread ID
        and authentication token.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                agentId:
                  type: string
                  format: uuid
                metadata:
                  type: object
                  additionalProperties:
                    type: string
                variables:
                  type: object
                  additionalProperties:
                    type: string
              required:
                - agentId
      responses:
        '200':
          description: Chat thread created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  threadId:
                    type: string
                  token:
                    type: string
                required:
                  - threadId
                  - token
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    default: 400
                  message:
                    type: string
                    default: Bad request
                  code:
                    type: string
                    enum:
                      - BAD_REQUEST
                    default: BAD_REQUEST
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false
        '403':
          description: Forbidden - Domain not authorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    default: 403
                  message:
                    type: string
                    default: Forbidden
                  code:
                    type: string
                    enum:
                      - FORBIDDEN
                    default: FORBIDDEN
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false
        '429':
          description: Too Many Requests - Rate limit exceeded
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    default: 500
                  message:
                    type: string
                    default: Internal server error
                  code:
                    type: string
                    enum:
                      - INTERNAL_SERVER_ERROR
                    default: INTERNAL_SERVER_ERROR
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false

````