Document
🚨 DEPRECATED ENDPOINT 🚨
This endpoint is deprecated and will be removed in a future version. Please migrate to /documents immediately.
Process multiple documents and add them to the vector store. Supports both file uploads and URLs.
⚠️ IMPORTANT REQUIREMENT: Files must be uploaded in the exact same order as the FILE-type entries in your file_metadatas array. Filename validation is enforced.
The conversation ID.
List of file metadatas in JSON string format. Examples:
- For file upload:
{"file_id":"123456","input_type":"FILE","filename":"file.pdf"} - For URL:
{"file_id":"123456","input_type":"URL","url":"https://example.com/file"}
The knowledge base ID.
List of files to be uploaded.
[]Successful Response
Bad Request
Validation Error
Internal Server Error
Process multiple documents and add them to the vector store. Supports both file uploads and URLs.
⚠️ IMPORTANT REQUIREMENT: Files must be uploaded in the exact same order as the FILE-type entries in your file_metadatas array. Filename validation is enforced.
The conversation ID.
List of file metadatas in JSON string format. Examples:
- For file upload:
{"file_id":"123456","input_type":"FILE","filename":"file.pdf"} - For URL:
{"file_id":"123456","input_type":"URL","url":"https://example.com/file"}
The knowledge base ID.
List of files to be uploaded.
[]Successful Response
Bad Request
Validation Error
Internal Server Error
Last updated