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

# Knowledge Base Files

> Knowledge Base Files



## OpenAPI

````yaml api-reference/openapi-spec.json post /api/embedfiles
openapi: 3.0.3
info:
  title: OKCHAT2.0
  version: 1.0.0
  contact: {}
servers:
  - url: https://v2.okchat.ai
  - url: http://localhost
security: []
tags: []
paths:
  /api/embedfiles:
    post:
      summary: Knowledge Base Files
      description: Knowledge Base Files
      operationId: knowledgeBaseFiles
      parameters:
        - name: chatbotId
          in: query
          schema:
            type: string
            example: 5afe16ed-5fd2-4552-a993-903bc9c32bb6
        - name: x-api-key
          in: header
          schema:
            type: string
            example: 4358d60b39ef0df47f421c0d58331407ec609abb6355dfa4
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                chatbotId:
                  type: string
                  example: 5afe16ed-5fd2-4552-a993-903bc9c32bb6
                files:
                  type: string
                  format: binary
      responses:
        '200':
          description: ''

````