API referenceKnowledge
Upload Document
POST
Upload a document file (PDF, TXT, CSV, Excel; images and Word with the pipeline).
Required scope: knowledge:write
header
AuthorizationBearer <luso8_sk_live_<40 characters>>A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.
folder_id*Folder IdFormat
uuidmultipart/form-data- body
file*FileFormat
binaryname?string|nulldescription?string|nullSuccessful Response
application/json- response
name*NameLength
length <= 500description?string|nulldocument_type*Document Typeid*IdFormat
uuidfolder_id*Folder IdFormat
uuidcreated_by?string|nulloriginal_type?string|nullstatus?StatusDefault
"pending"error_message?string|nullsource_url?string|nullfile_path?string|nullfile_size?integer|nullmime_type?string|nullcontent?string|nullprocessed_content?string|nullchunk_count?Chunk CountDefault
0vector_ids?array<string>|nulldoc_metadata?crawled_pages?array<>|nullcreated_at*Created AtFormat
date-timeupdated_at?|nullindexed_at?|nullprocessing_started_at?|nullprocessing_completed_at?|nullcurl -X POST 'https://api.luso8.rexplore.ai/api/v1/knowledge/folders/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/upload' \ -F 'file=string'Example Response
{ "name": "string", "description": "string", "document_type": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "created_by": "string", "original_type": "string", "status": "pending", "error_message": "string", "source_url": "string", "file_path": "string", "file_size": 0, "mime_type": "string", "content": "string", "processed_content": "string", "chunk_count": 0, "vector_ids": [ "string" ], "doc_metadata": {}, "crawled_pages": [ {} ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "indexed_at": "2019-08-24T14:15:22Z", "processing_started_at": "2019-08-24T14:15:22Z", "processing_completed_at": "2019-08-24T14:15:22Z"}