Skip to main content
POST
/
api
/
v1
/
upload
"<any>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Workspace-Id
string | null

The workspace ID

Body

multipart/form-data
collection_id
string
required
file
file | null
files
file[] | null
content
string | null
urls
string[] | null
content_type
string | null
default:file
metadata
string | null
user_id
string | null
label
string | null
description
string | null
crawl
boolean | null
default:false
ingest
boolean | null
default:true
reader
string | null
Reader to use for processing files. Supported values:
- 'native': Use native implementation (default)
- 'langchain': Use LangChain readers for all files
- 'markitdown': Use MarkItDown for universal conversion to markdown

Provider + Type Format:
- 'langchain_pdfplumber': LangChain with PDFPlumber (better OCR, tables)
- 'langchain_pypdf': LangChain with PyPDF (faster for text-based PDFs)

Specific Reader:
- 'pdf', 'csv', 'docx', 'json', 'markdown', 'text'

Response

Successful Response

The response is of type any.