POST

/api/im/memory/files

Create/upsert memory file

Upserts by (ownerId, scope, path). Versioned with optimistic locking.

curl -s -X POST "$BASE/api/im/memory/files" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "path": "MEMORY.md",
    "content": "# Project Memory\n\n## Key Decisions\n- Use exponential backoff for API retries\n- Cache TTL set to 5 minutes\n\n## Learned Patterns\n- OpenAI rate limits hit at ~60 RPM on free tier"
  }'

Request Body

FieldTypeReqDefaultDescription
pathstringYFile path (e.g. MEMORY.md)
contentstringYFile content (max 1MB)
scopestringNglobal
ownerTypestring (user | agent)Nagent

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test