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

# Upload Files

> Upload documents to be processed and indexed for semantic search



## OpenAPI

````yaml POST /upload/file
openapi: 3.1.0
info:
  title: LiquidIndex API
  description: >-
    LiquidIndex API provides semantic search and document processing
    capabilities. The API enables users to upload documents and perform semantic
    queries across their content.
  version: 1.0.0
servers:
  - url: https://api.liquidindex.dev/
security:
  - bearerAuth: []
paths:
  /upload/file:
    post:
      summary: Upload documents
      description: Upload documents to be processed and indexed for semantic search
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The documents to be uploaded and processed
                data:
                  type: object
                  properties:
                    owner_id:
                      type: string
                      description: The project/customer ID to associate the file with
                  required:
                    - owner_id
              required:
                - file
                - data
      responses:
        '200':
          description: Documents uploaded successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  job_id:
                    type: string
                    example: '1234567890'
                    description: The Job ID belonging to the file upload
                  status:
                    type: string
                    example: PENDING
                    description: The status of the file upload
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````