Skip to main content
POST

Overview

Uploads a file into the agent’s Moorcheh namespace for the active session. Moorcheh extracts text and indexes it so content can be discovered via Recall.
Supported extensions: .pdf, .docx, .xlsx, .json, .txt, .csv, .md. The route validates the extension before upload. Files are streamed to disk in 1 MB chunks and hard-capped at 5 GB; anything larger is rejected mid-upload with 413.

Authentication

API clients do not send an API key or Authorization header.
string
required
Session token from Activate Agent. Must match agent_id.
When using curl with -F, do not set Content-Type manually — curl sets multipart/form-data with the correct boundary.

Path Parameters

string
required
The unique identifier of the agent.

Body (multipart)

file
required
File field name must be file (FastAPI UploadFile parameter).

Next Steps

  • Recall to search across uploaded content
  • Remember to add structured memories alongside uploads