Upload Document
POST/documents
Upload a document to the project associated with the API key.
The document will be uploaded to the project that the API key belongs to. Maximum file size allowed is 100MB.
Supported file types:
- PDF:
.pdf - Word:
.doc,.docx - Excel:
.xls,.xlsx - Images:
.png,.jpg,.bmp - Emails:
.eml,.msg
Parameters:
- file: The file to upload (multipart/form-data)
- description: Optional description of the document
- folder_path: Optional folder path within the project (
/as separator, max 255 chars per segment) - metadata: Optional JSON metadata (key-value pairs)
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 413
- 422
Document uploaded successfully
Validation Error
Unauthorized
Forbidden
Not Found
Request Entity Too Large
Unprocessable Entity