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

# Upload a document

> Upload a document to the database



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi post /api/v1/documents/upload
openapi: 3.1.0
info:
  title: IntelliQ API
  description: API for IntelliQ
  version: 2.0.0
servers:
  - url: http://localhost:8787
    description: Local server
  - url: https://app.intelliq.dev
    description: Production server
security: []
paths:
  /api/v1/documents/upload:
    post:
      tags:
        - Documents
      summary: Upload a document
      description: Upload a document to the database
      operationId: postApiV1DocumentsUpload
      responses:
        '201':
          description: Document uploaded successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: number
                      fileName:
                        type: string
                      fileType:
                        type: string
                      uploadDate:
                        type: string
                      size:
                        type: string
                      status:
                        type: string
                      metadata:
                        type: object
                        properties:
                          size:
                            type: number
                          mimeType:
                            type: string
                          sizeInKb:
                            type: number
                          extension:
                            type: string
                          uploadedBy:
                            type: string
                          contentType:
                            type: string
                          storagePath:
                            type: string
                          lastModified:
                            type: string
                          originalName:
                            type: string
                          signedUrlExpiry:
                            type: string
                          uploadTimestamp:
                            type: string
                          processingStatus:
                            type: string
                        required:
                          - size
                          - mimeType
                          - sizeInKb
                          - extension
                          - uploadedBy
                          - contentType
                          - storagePath
                          - lastModified
                          - originalName
                          - signedUrlExpiry
                          - uploadTimestamp
                          - processingStatus
                    required:
                      - id
                      - fileName
                      - fileType
                      - uploadDate
                      - size
                      - status
                      - metadata
                required:
                  - success
                  - message
                  - data

````