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

# Upload files

> Async multipart upload of one or more files. Returns 202 with file IDs. Maximum body size 200 MB.



## OpenAPI

````yaml /openapi/external-v1.json post /api/v1/queues/{queueId}/files
openapi: 3.1.0
info:
  title: Documate Partner API
  version: v1
  description: >-
    External partner API for uploading documents and reading extraction results.
    Authenticate with a business API key from the Documate app.
servers:
  - url: https://api2.documate.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/queues/{queueId}/files:
    post:
      summary: Upload files
      description: >-
        Async multipart upload of one or more files. Returns 202 with file IDs.
        Maximum body size 200 MB.
      operationId: uploadFiles
      parameters:
        - name: queueId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Channel ID from the Documate app.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - files
              properties:
                files:
                  type: array
                  items:
                    type: string
                    contentMediaType: application/octet-stream
                  description: 'One or more files. Form field name: files.'
                documentTypeKey:
                  type: string
                  description: Optional document type key.
                documentCount:
                  type: integer
                  description: Optional hint for logical document count.
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadAccepted'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Channel not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UploadAccepted:
      type: object
      properties:
        queueId:
          type: string
          format: uuid
        batchId:
          type: string
          format: uuid
          nullable: true
        fileIds:
          type: array
          items:
            type: string
            format: uuid
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API key from the Documate app (Settings → API keys). You may also send
        `Authorization: ApiKey YOUR_API_KEY`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.