Save a memory
Save a memory through the belief pipeline: exact-duplicate detection, semantic dedup, and
contradiction detection. A contradiction keeps both memories active and returns
outcome: conflict with a conflictId for you to resolve. Nothing is overwritten.
In offline mode (no OPENROUTER_API_KEY) dedup is off and every save is added.
Body
The memory text to save.
"the staging database runs on Postgres 17"
Optional short canonical form used for exact-duplicate detection.
"staging database engine"
The kind of memory (defaults to fact): fact is a stable truth about the world or the user; preference is how the user likes things done; episode is a time-bound event or decision; procedure is reusable how-to steps.
fact, preference, episode, procedure "fact"
Owner UUID. Defaults to the fixed single-user sentinel in the embedded tier.
Response
The save decision.
Id of the saved (or merged-into) memory.
What the belief pipeline did. versioned means the save restated an existing belief and became its new current version.
added, merged, versioned, conflict Present when outcome is conflict; resolve it via the conflicts endpoints.
Present when outcome is versioned; the new version number (2 or higher).