Skip to main content
POST
Ingest a file as context

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
path
string
required

Absolute path to a .md, .txt, or .pdf file on this machine.

Example:

"C:\\Users\\me\\notes\\setup.md"

Response

What happened to the document.

documentId
string
outcome
enum<string>

converted means the path matched an earlier upload snapshot, which was absorbed into this linked document. exists means the content is already present as a linked document.

Available options:
added,
updated,
unchanged,
converted,
exists
title
string
Example:

"Deploy Guide"

chunks
integer
Example:

12