Upload a document
Upload a file for processing into the knowledge base
query Parameters
start_processingStart processing immediately
collection_idAssign to a collection
sourceSource identifier for the document (e.g. 'youtube-transcriber', 'slack-bot'). Defaults to 'upload'.
Upload a document › Responses
Document uploaded
idfilenamefile_typefile_sizeupload_dateprocessing_statuschunk_countcollection_idsourceOrigin of the document (e.g. 'upload', 'custom_input', or a custom source set via API)
Get document details
path Parameters
document_idGet document details › Responses
Document retrieved
idfilenamefile_typefile_sizeupload_dateprocessing_statuschunk_countcollection_idsourceOrigin of the document (e.g. 'upload', 'custom_input', or a custom source set via API)
Get original document file
Serve the original uploaded file for viewing or download. Returns the raw file with its stored filename and content type. For restricted API keys, access is validated against the document's collection.
path Parameters
document_idGet original document file › Responses
Original file stream
Download documents as ZIP
Stream a ZIP archive of the original uploaded files for the given document IDs. Uses ZIP64 for large collections.
Download documents as ZIP › Request Body
document_idsList of document IDs to include in the ZIP
Download documents as ZIP › Responses
ZIP archive streamed successfully