Sessions & Agents
Memory Operations

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

Request

  • The document declares no server URL.
  • Auth
    none 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

filestring binary required

File to upload (.pdf, .docx, .xlsx, .json, .txt, .csv, .md)

Response

Successful Response

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

Changes

    • breaking

      the file request property contentMediaType changed from to application/octet-stream

    • info

      the file request property format was generalized from binary to no format

    • breaking

      the file request property contentMediaType changed from application/octet-stream to

    1 more change in this revision