Skip to main content
POST
Upload file bytes as a document

Headers

X-Memloom-Owner
string<uuid>

The owner this request acts for. Applies to every owner-scoped endpoint, reads as well as writes. Omit it and the daemon's own default owner answers (see GET /health), which is what a single-owner install has always used. A value that is not a uuid is refused with 400 rather than coerced.

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