Skip to main content
POST
https://memorymachines-core-api-mvp-gateway-6v1lw71z.uc.gateway.dev
/
v1
/
memorize
curl -X POST https://memorymachines-core-api-mvp-gateway-6v1lw71z.uc.gateway.dev/v1/memorize \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@meeting-notes.txt" \
  -F "user_name=John Doe" \
  -F "item_id=meeting-2025-01-15" \
  -F "source_type=text"
{
  "status": "success",
  "user_id": "user_abc123",
  "item_id": "meeting-2025-01-15",
  "workflow_execution": "projects/memorymachines/locations/us-central1/workflows/realtime-memory-pipeline/executions/exec-abc123"
}
Upload a text document for AI-powered memory extraction. Processing completes in ~10-15 seconds.
file
file
required
The document file to upload. Must be UTF-8 encoded text, max 10MB.
user_name
string
required
Your name for generating first-person memory narratives.
item_id
string
Optional unique identifier for this document. Auto-generated if not provided. Must contain only a-z, A-Z, 0-9, -, _. Max 100 characters.
source_type
string
Document type hint for better extraction. Options: text, email, pdf, stream, browser, vscode, calendar, github, slack
curl -X POST https://memorymachines-core-api-mvp-gateway-6v1lw71z.uc.gateway.dev/v1/memorize \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@meeting-notes.txt" \
  -F "user_name=John Doe" \
  -F "item_id=meeting-2025-01-15" \
  -F "source_type=text"
{
  "status": "success",
  "user_id": "user_abc123",
  "item_id": "meeting-2025-01-15",
  "workflow_execution": "projects/memorymachines/locations/us-central1/workflows/realtime-memory-pipeline/executions/exec-abc123"
}