Upload a new file to a knowledge folder
api.langdock.com with your deployment’s base URL: <deployment-url>/api/publicKNOWLEDGE_FOLDER_API scope. The knowledge folder must be shared with the API key. See Share Knowledge Folders with the API for setup instructions.multipart/form-data requests with the file attached.
| Parameter | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | The ID of the knowledge folder |
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Yes | The file to upload (max 256MB) |
url | string | No | Optional source URL to associate with the file |
.pdf).doc, .docx).txt).md).html).csv).pptx, .ppt)syncStatus field indicates the current state:
UPLOADING - File is being uploadedUPLOADED - File is uploaded and queued for processingEXTRACTING - Text is being extracted from the fileEMBEDDING - Embeddings are being generatedSYNCED - File is ready for searchACTION_FAILED, EXTRACTION_FAILED, EMBEDDING_FAILED, TIMEOUT - Processing failed