Skip to main content
POST
Upload file bytes as a document

Body

application/json
filename
string
required

Name with extension; picks the extractor and titles the document.

Example:

"notes.md"

contentBase64
string
required

The file bytes, base64-encoded.

Response

The ingest outcome (same shape as /context/add for one file).

documentId
string<uuid>
outcome
enum<string>
Available options:
added,
updated,
unchanged,
converted,
exists
title
string
chunks
integer