Endpoint to upload documents. Documents are saved to the persistent storage, parsed, chunked and embedded. The file is indexed as a document in the SQL database, with its chunks, and related to its owner, company and collection for permission application. To specify a workspace, set ‘collection_type’ to one of the following:
Bearer token authentication
Request serializer for file upload.
255512Owner of the file (optional)
Company to associate the file with (optional)
Type of collection to store the file in (private, company, or workspace)
private - privatecompany - companyworkspace - workspaceWorkspace ID when collection_type is 'workspace'
Size of chunks for document processing (optional)
Overlap between chunks (optional)
OCR agent to use for processing (optional)
Enable complete document table extraction (optional)
High resolution OCR model name (optional)
OCR processing strategy (optional)
OCR processing timeout in seconds (optional)
OCR service URL (optional)
Enable visual ingestion processing (optional)
Default processing pipeline to use (optional)
Document uploaded successfully
Response serializer for file upload results.
Unique identifier for the uploaded file
Object type, always 'file'
Size of the file in bytes
Unix timestamp of when the file was created
Original filename of the uploaded file
Purpose of the file, always 'documents'
Processing status of the file