Skip to main content
POST
Ingest a file as context

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