Upload Document
Upload a document (PDF, plain text, markdown, or HTML) to a knowledge base. The document is extracted, chunked, embedded, and indexed synchronously; expect a few seconds per MB of input. Maximum 10 MB per upload.
Authentication
AuthorizationBearer
Enter the key with the Bearer prefix, e.g. ‘Bearer API_KEY|ACCESS_TOKEN’.
Path parameters
id
Request
This endpoint expects a multipart form containing a file.
file
Response
The ingested document record.
id
kb_id
filename
content_type
byte_size
char_count
chunk_count
status
Allowed values:
created_at
updated_at
error
Populated when status is failed.