GET /api/memories/:id/history
Returns every edit to a single memory, merged from two sources:
metadata.historyentries written whencontentis changed viaPATCH /api/memories/:id. Carryprev_content_len.audit_logrows for anymemory.save | memory.update | memory.deleteaction against this id. Carry actor + timestamp.
curl https://www.mnueron.com/api/memories/01HQB9R3MV…/history \
-H "Authorization: Bearer $MNUERON_API_TOKEN"
Response
{
"memory_id": "01HQB9R3MV…",
"history": [
{
"at": 1737070000000,
"kind": "create",
"by_user": "01HQ…",
"by_token": "01HQ…"
},
{
"at": 1737071000000,
"kind": "update",
"by_user": "01HQ…",
"by_token": "01HQ…"
},
{
"at": 1737071000000,
"kind": "content_edit",
"by_user": "01HQ…",
"by_token": "01HQ…",
"prev_content_len": 42
}
]
}
Kinds
kind | Source | Meaning |
|---|---|---|
create | audit_log (memory.save) | The memory was inserted |
update | audit_log (memory.update) | Any field was updated |
delete | audit_log (memory.delete) | The memory was hard-deleted (the memory itself is then gone, but the history endpoint still returns its trail) |
content_edit | metadata.history | The content field changed; prev_content_len is included |
consolidation | audit_log | The memory was created or absorbed by a consolidation merge |
Entries are sorted ascending by at.