1. List memories
Use List memories to retrieve your stored memories, newest first. You can filter the results using:provenance: Filter by the memory’s provenance class.domain: Filter by memory category.q: Search for text in the memory’s summary, without case sensitivity.days: Only return memories created in the last N days.order: Usedescfor newest first (the default) orascfor oldest first.project_id: Filter by project. Withoutproject_id, the list covers all memory. Withproject_id, it includes that project’s memory and general memory.
limit and offset to paginate the results. The default limit is 50, with a maximum of 200. The response includes total, the number of matching memories across all pages.
Each memory includes:
id: The memory’s identifier.content_summary: The memory’s summary, up to 500 characters.provenance: The memory’s provenance class.domain: The memory’s category.created_at: When the memory was created.status: The memory’s current status.superseded_by: The identifier of the newer version, when replaced.
status set to replaced and superseded_by pointing to the newer version.
2. Get one memory
Use Get a memory to retrieve a memory by itsrecord_id, including its full text, source and status.
The full_text field contains the complete memory text. For a saved exchange (ROUND), it contains the full user-assistant exchange.
The response also includes:
project_id: The project associated with the memory.session_id: The conversation session associated with the memory.source_id: The project document the memory came from, or null.supersedes: The identifier of the earlier version, or null.superseded_by: The identifier of the newer version, or null.
superseded_by field points to the newer version.
3. Edit a memory
Use Edit a memory to change the content of an existing memory. Send the corrected text in thecontent field, up to 1,000 characters.
EDN saves the new text as a new USER_CONFIRMED memory and keeps the previous version in the memory’s history. The response contains the new memory. Use its id for subsequent operations.
You can edit memories with these provenance classes:
USER_STATEDUSER_CONFIRMEDAI_INFERREDAI_GENERATED
DOCUMENT_VERIFIED) and saved exchanges (ROUND) cannot be edited. EDN returns 409 for these memories.
4. Confirm an AI memory
Use Confirm a memory when the user agrees with anAI_INFERRED or AI_GENERATED memory.
Send the record_id returned by Classify an AI response or Save a generated statement.
EDN creates a new USER_CONFIRMED memory, which is used in Session Initialization Packages (SIPs) from then on.
The response includes:
record_id: The identifier of the newUSER_CONFIRMEDmemory.replaces: The identifier of the original AI memory that was confirmed.
record_id for subsequent operations.
EDN returns 409 if the memory does not need confirming.
5. See a memory’s history
Use Get a memory’s history to retrieve every version of a memory. EDN links versions created through edits, corrections and confirmations. You can pass therecord_id of any version to retrieve its complete history.
The response contains a versions array, ordered from oldest to newest. The final entry is the latest version.
6. Delete a memory
Use Delete a memory to remove a memory by itsrecord_id.
Once deleted, the memory is no longer used in SIPs or search and does not appear in memory lists.
The endpoint returns 204 with no response body.
7. Replaced, confirmed and deleted memories
EDN handles replaced, confirmed and deleted memories differently.
Use Get a memory’s history to trace changes across versions created by edits, corrections and confirmations.
Next steps: See List memories and Edit a memory for the API reference.
