Store a memory
Store a new memory. This endpoint is asynchronous and returns 202 Accepted with a job_id.
POST
/api/v1/memoriesBody Parameters
application/jsoncontentstringrequiredThe text of the memory
tagsstring[]Dot-separated tags like type.preference or domain.ui
categorystringOptional grouping label
ingestion_scopestringOptional regex over tags that limits merge/link candidates during ingest only.
API Key
Stored locally, never sent to servers
Store a memory
const options = { method: 'POST', headers: {'X-API-Key': 'mb_live_xxx', 'Content-Type': 'application/json'}, body: JSON.stringify({"content": "User prefers dark mode and uses VSCode", "tags": ["type.preference", "domain.ui"], "category": "user-prefs"})};fetch('https://api.mem-brain.io/api/v1/memories', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));{ "job_id": "job_abc123", "status": "queued", "message": "Memory queued for processing"}