Skip to main content
These v4 endpoints operate on extracted memories (not raw documents). SDK support coming soon — use fetch or cURL for now.For document management (list, get, update, delete), see Document Operations.

Forget Memory

Soft-delete a memory — excluded from search results but preserved in the system. Use this when you might want to restore later.
await fetch("https://api.supermemory.ai/v4/memories/mem_abc123/forget", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${API_KEY}`
  }
});
The memory will no longer appear in search results but remains in the database.

Update Memory (Versioned)

Update a memory by creating a new version. The original is preserved with isLatest=false.
await fetch("https://api.supermemory.ai/v4/memories", {
  method: "PATCH",
  headers: {
    "Authorization": `Bearer ${API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    // Identify by ID or content
    id: "mem_abc123",
    // content: "Original content to match",

    newContent: "Updated content goes here",
    metadata: {
      tags: ["updated"]
    }
  })
});

Parameters

ParameterTypeRequiredDescription
idstring*Memory ID to update
contentstring*Original content to match (alternative to ID)
newContentstringyesNew content for the memory
metadataobjectnoUpdated metadata
* Either id or content must be provided.

Next Steps