Index File Upload

Upload and index files directly into a collection via multipart form-data. Upload one or more files (max 20) in a single request. Supports PDF, DOCX, XLSX, CSV, TXT, images, and other document types. Files are processed through the same pipeline as cloud storage indexing. ## Supported File Types PDF, DOCX, DOC, XLSX, XLS, CSV, TSV, TXT, MD, JSON, YAML, YML, PNG, JPG, JPEG, GIF, BMP, TIFF ## Size Limits - Maximum 100MB per file - Maximum 20 files per request ## Processing Modes - **advanced**: AI-enhanced extraction for complex layouts, tables, figures, charts, and documents containing images (2.5 credits/page) - **basic**: Standard document processing optimized for general indexing (1 credit/page) Returns a job_id for tracking progress via GET /v2/jobs/{job_id}.

Authentication

AuthorizationBearer
Bearer token authentication using API key

Path parameters

collection_namestringRequired
Name of the collection to index into

Headers

X-Organization-IDstringRequired
Idempotency-KeystringOptional
UUID for request deduplication

Request

This endpoint expects a multipart form with multiple files.
filesfilesRequired

One or more files to upload and index (max 20)

processing_typeenumOptionalDefaults to basic

Document processing type: ‘advanced’ for AI-enhanced extraction, ‘basic’ for standard processing

Allowed values:
custom_metadatastringOptional
JSON string of custom metadata to attach to all indexed chunks

Response

Indexing job started
job_idstring
statusenum
Allowed values: