Sessions & Agents
Memory Operations
Upload File
Changed onUpload 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
Request
- The document declares no server URL.
- Authnone declared
Path parameters
agent_idstring required
Headers
x-session-tokenstring nullable
authorizationstring nullable
X-Api-Keystring nullable
Cookies
memanto_session_tokenstring nullable
Request body multipart/form-data
Response
Successful Response
Changes
- breaking
the
filerequest property contentMediaType changed fromtoapplication/octet-stream - info
the
filerequest property format was generalized frombinaryto no format
- breaking
- breaking
the
filerequest property contentMediaType changed fromapplication/octet-streamto
1 more change in this revision
- breaking