Skip to main content
POST
/
api
/
v2
/
agents
/
{agent_id}
/
upload-file
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/upload-file" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token" \
  -F "file=@report.pdf"
{
  "agent_id": "my-agent",
  "session_id": "session_abc123",
  "namespace": "memanto_agent_my-agent",
  "file_name": "quarterly-report.pdf",
  "file_size": 2516582,
  "status": "uploaded",
  "message": ""
}

Overview

Upload files so content becomes searchable via recall.

Authentication

  • Authorization: Bearer your_api_key
  • X-Session-Token: {session_token}

Path Parameters

agent_id
string
required
Agent identifier.

Body Parameters

file
file
required
Document file upload.
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/upload-file" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token" \
  -F "file=@report.pdf"
{
  "agent_id": "my-agent",
  "session_id": "session_abc123",
  "namespace": "memanto_agent_my-agent",
  "file_name": "quarterly-report.pdf",
  "file_size": 2516582,
  "status": "uploaded",
  "message": ""
}

Response Fields

agent_id
string
Agent ID.
session_id
string
Session ID.
namespace
string
Destination namespace.
file_name
string
Uploaded filename.
file_size
integer
Uploaded file size.
status
string
Upload status.
message
string
Additional details.

Notes

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