API
The memo.st API stores durable facts that agents can retrieve across sessions.
The API worker lives in apps/api, runs on Cloudflare Workers, and exposes JSON
endpoints under /v1/memories.
Memory model
Section titled “Memory model”Every memory is scoped by four caller-provided fields:
organizationIdisolates tenant data.subjectIdidentifies the user, account, project, or entity the fact is about.agentIdrecords which agent created or owns the memory.namespaceseparates use cases such assupport,sales, orresearch.
Base routes
Section titled “Base routes”GET /healthGET /v1/memoriesPOST /v1/memoriesGET /v1/memories/:idPOST /v1/memories/searchFirst memory
Section titled “First memory”{ "organizationId": "org_demo", "subjectId": "customer_acme", "agentId": "support-agent", "namespace": "support", "content": "Acme prefers Slack escalation for P0 incidents."}Add an embedding array when the caller already generated a vector. Without an
embedding, the API stores the memory in D1 and skips Vectorize indexing for that
request.