Upload multiple documents.
Request Body (multipart/form-data):
files: List of files to upload (required)categories (optional): List of category names to organize documentsReturns:
list[int] containing:
Supported File Types:
File Size Limit:
Maximum 100 MB per file
Example Request:
POST /api/v3/documents
Headers: {"Authorization": "Bearer <api_key>"}
Content-Type: multipart/form-data
Form Data:
files: [report.txt, analysis.md]
categories: ["financial", "2024-q1"]
Example Response:
[
12345,
12346
]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns a list of task IDs for the uploaded documents. This endpoint handles the upload of multiple documents, validates their types and sizes, creates processing tasks for each document, and returns their unique task identifiers for tracking the upload and processing status via Celery background tasks.