Skip to main content
EDN provides API endpoints to manage the memories it holds. You can list and inspect memories, edit their content, confirm AI memories, review their history and delete memories that are no longer needed.

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: Use desc for newest first (the default) or asc for oldest first.
  • project_id: Filter by project. Without project_id, the list covers all memory. With project_id, it includes that project’s memory and general memory.
Use 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.
Deleted memories are not listed. Memories replaced by an edit or correction remain in the list with 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 its record_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.
You can also retrieve a replaced memory. Its 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 the content 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_STATED
  • USER_CONFIRMED
  • AI_INFERRED
  • AI_GENERATED
Documents (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 an AI_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 new USER_CONFIRMED memory.
  • replaces: The identifier of the original AI memory that was confirmed.
The original memory no longer appears in memory lists or SIPs. Use the new 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 the record_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 its record_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.