Skip to main content
POST
Upload and ingest context vault document

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.

Body

multipart/form-data
workspaceId
string<uuid>
required
title
string
required
file
file
required
vaultId
string<uuid>

Optional vault inside the workspace. Defaults to the workspace's default vault.

sourceType
enum<string>
Available options:
pdf,
markdown,
text,
docx,
html,
url,
csv,
png,
jpg,
jpeg,
webp,
tiff
scope
string
project
string
content
string

Optional extracted text override for binary files.

Response

202 - application/json

File uploaded and added to the workspace document list.

document
object
required
chunkCount
integer
required
extractedCount
integer
required
status
enum<string>
required
Available options:
accepted
message
string
required