All routes on this page require a browser session.
Personal memory
GETPath
/api/memoriesPurpose
List up to 500 active memories, newest first
POSTPath
/api/memoriesPurpose
Create one memory
PATCHPath
/api/memories/:idPurpose
Update content, category or importance
DELETEPath
/api/memories/:idPurpose
Delete one memory (status → deleted, restorable)
DELETEPath
/api/memories?confirm=allPurpose
Archive every memory for the account
POSTPath
/api/memories/bulkPurpose
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"
}'contentRequired
Yes
Notes
Up to 2,000 characters.
categoryRequired
No
Notes
One of preference, fact, goal, relationship, event, skill, opinion, or a custom category you added under Settings → Categories.
importanceRequired
No
Notes
0.05–0.99; defaults from the content.
agent_idRequired
No
Notes
Up to 60 characters; defaults to
assistant.sourceRequired
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
GETPath
/api/code-memoriesPurpose
List code memory (optionally filtered by repo, type, query)
POSTPath
/api/code-memoriesPurpose
Create or upsert one code memory
PATCHPath
/api/code-memories/:idPurpose
Update fields
DELETEPath
/api/code-memories/:idPurpose
Delete one
DELETEPath
/api/code-memoriesPurpose
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
}'contentRequired
Yes
Notes
The rule, decision or pitfall.
typeRequired
Yes
Notes
preference, convention, decision, fact, gotcha, pattern.
keyRequired
No
Notes
Stable identity; a keyed write replaces the previous value.
repoRequired
No
Notes
owner/name; required in practice for team sharing.scopeRequired
No
Notes
global, repo or branch.
path, symbol, language, branch, commit_shaRequired
No
Notes
Location metadata used for ranking.
confidenceRequired
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.