Endpoint
Upload Methods
- File Only
- Text/JSON Only
- File + Text (Merged)
Upload a file. Creates a
file type item.Request Parameters (Form Data)
File to upload. Either
file or content must be provided.Item type:
file, text, or json. Required when only content is provided. Ignored when file is provided.Display name (defaults to filename or auto-generated)
Text or JSON content. Either
file or content must be provided.Custom metadata as a JSON string
Response (201 Created)
Original file URL. Only included in upload/update responses, not in list or detail queries.
Auto-detected file info:
contentType, extension, fileCategoryOCR-extracted text.
null on creation, populated after processing completes.File Constraints
| Constraint | Value |
|---|---|
| Max file size | 10 MB |
| Max items per folder | 5 |
Supported File Formats
| File Type | Extensions | Processing |
|---|---|---|
| Images | jpg, jpeg, png, bmp, tiff, webp | OCR (auto text extraction) |
| OCR (auto text extraction) | ||
| Text documents | txt, md, html, htm, csv | Direct read |
| Office documents | doc, docx, xls, xlsx | Auto text extraction |
Processing
After upload, items are automatically processed:- Images & PDFs: OCR extraction (Korean & English)
- Office documents: Text and data extraction
- Status flow:
PENDING→ACTIVE(orFAILED)
Error Codes
| Status | Code | Description |
|---|---|---|
| 400 | FILE_OR_CONTENT_REQUIRED | Either file or content must be provided |
| 400 | TYPE_REQUIRED | type is required when only content is provided |
| 404 | FOLDER_NOT_FOUND | Folder not found |
| 409 | ITEM_LIMIT_EXCEEDED | Max 5 items per folder exceeded |
| 413 | FILE_TOO_LARGE | File exceeds 10 MB limit |
| 415 | UNSUPPORTED_FILE_TYPE | File format not supported |