API Reference

Memories

Create, list, update and delete personal memory, in bulk if needed, plus the code memory routes.

API Reference6 pages

All routes on this page require a browser session.

Personal memory

GET
Path
/api/memories
Purpose
List up to 500 active memories, newest first
POST
Path
/api/memories
Purpose
Create one memory
PATCH
Path
/api/memories/:id
Purpose
Update content, category or importance
DELETE
Path
/api/memories/:id
Purpose
Delete one memory (status → deleted, restorable)
DELETE
Path
/api/memories?confirm=all
Purpose
Archive every memory for the account
POST
Path
/api/memories/bulk
Purpose
Create up to 50 at once
create
curl -X POST https://memo.uno/api/memories \
  -H "Content-Type: application/json" \
  --cookie "memo_session=<session>" \
  -d '{
    "content": "I prefer pnpm over npm.",
    "category": "preference",
    "importance": 0.8,
    "agent_id": "claude-code"
  }'
content
Required
Yes
Notes
Up to 2,000 characters.
category
Required
No
Notes
One of preference, fact, goal, relationship, event, skill, opinion, or a custom category you added under Settings → Categories.
importance
Required
No
Notes
0.05–0.99; defaults from the content.
agent_id
Required
No
Notes
Up to 60 characters; defaults to assistant.
source
Required
No
Notes
manual, extracted, imported or seed.

The create response includes resolution: created, merged or superseded, which tells you whether the resolver found an existing memory.

bulk create
curl -X POST https://memo.uno/api/memories/bulk \
  -H "Content-Type: application/json" \
  --cookie "memo_session=<session>" \
  -d '{ "items": [ { "content": "…" }, { "content": "…", "category": "goal" } ] }'

Code memory

GET
Path
/api/code-memories
Purpose
List code memory (optionally filtered by repo, type, query)
POST
Path
/api/code-memories
Purpose
Create or upsert one code memory
PATCH
Path
/api/code-memories/:id
Purpose
Update fields
DELETE
Path
/api/code-memories/:id
Purpose
Delete one
DELETE
Path
/api/code-memories
Purpose
Clear code memory for the account
keyed upsert
curl -X POST https://memo.uno/api/code-memories \
  -H "Content-Type: application/json" \
  --cookie "memo_session=<session>" \
  -d '{
    "repo": "acme/api",
    "type": "convention",
    "key": "test:command",
    "content": "Run pnpm test before pushing; CI runs the same suite.",
    "confidence": 0.9
  }'
content
Required
Yes
Notes
The rule, decision or pitfall.
type
Required
Yes
Notes
preference, convention, decision, fact, gotcha, pattern.
key
Required
No
Notes
Stable identity; a keyed write replaces the previous value.
repo
Required
No
Notes
owner/name; required in practice for team sharing.
scope
Required
No
Notes
global, repo or branch.
path, symbol, language, branch, commit_sha
Required
No
Notes
Location metadata used for ranking.
confidence
Required
No
Notes
0.05–0.99.
`DELETE /api/memories`

Deleting one memory moves it to status deleted; memory_restore brings it back by id. DELETE /api/memories requires ?confirm=all, archives every personal memory the same way and does not touch code memory. Export first with the JSON download in Settings → Data.