v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-044334120.9 KB
Sessions & Agents
Memory Operations

Upload File

Upload a file directly to the agent's memory namespace (Session-based)

Supported formats: .pdf, .docx, .xlsx, .json, .txt, .csv, .md Maximum file size: 5GB

The file is processed by Moorcheh to extract text and generate embeddings, making its content searchable via recall.

Requires:

  • X-Session-Token: {session_token}
  • Content-Type: multipart/form-data
post/api/v2/agents/{agent_id}/upload-file

Path parameters

agent_idstring required

Headers

x-session-tokenstring nullable

Cookies

memanto_session_tokenstring nullable

Response

Successful Response

agent_idstring required
session_idstring required
namespacestring required
file_namestring required
file_sizeinteger nullable
statusstring required
messagestring