mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-30 01:51:28 +00:00
## Stack context This is the first PR in the V5 documentation stack. The migration guide and local-development wrapper build on it. ## What and why Add Legacy and Latest versions to the API Reference navigation, organize all V5 operations by user workflow, and introduce concise overview pages for each domain. The Latest reference consumes the authoritative `/v5/openapi` document published by the Mono API stack. ```mermaid flowchart LR Legacy[Legacy V3/V4 OpenAPI] --> Selector[Reference version selector] V5[V5 OpenAPI] --> Selector Selector --> Pages[Version-specific endpoint pages] ``` The `GET /ns` compatibility alias remains in the OpenAPI document but is intentionally omitted from navigation in favor of `GET /namespaces`. ## Validation - Parsed `docs.json` successfully with `jq`. - Compared navigation against the generated V5 schema: 22 displayed operations, 23 schema operations, with only `GET /ns` intentionally omitted. - Mintlify build validation passed against the local generated V5 OpenAPI snapshot. ## Deployment dependency The committed source is `https://api.supermemory.ai/v5/openapi`, which returns 404 until Mono PR #3306 and its API stack are deployed. Merge this PR after that endpoint is live.
18 lines
1 KiB
Text
18 lines
1 KiB
Text
---
|
|
title: "Content management"
|
|
sidebarTitle: "Overview"
|
|
description: "Retrieve, list, and remove documents, chunks, and memories"
|
|
icon: "file-text"
|
|
---
|
|
|
|
Inspect the context stored in a namespace and remove information that should no longer be used. Retrieve a document with its derived context, page through any resource type, or forget documents and memories precisely.
|
|
|
|
| Operation | Purpose |
|
|
| --- | --- |
|
|
| `GET /ns/{namespace}/document/{id}` | Retrieve source content with its chunks or memories |
|
|
| `POST /ns/{namespace}/list/{type}` | Page through documents, chunks, or memories |
|
|
| `DELETE /ns/{namespace}/document` | Remove one or many documents |
|
|
| `DELETE /ns/{namespace}/memories` | Forget reviewed memories by exact ID |
|
|
| `DELETE /ns/{namespace}/memories/semantic` | Find and forget memories by meaning |
|
|
|
|
Semantic forgetting supports `dryRun: true`, so you can review matches before deleting them. See [document read migration](/migration/api-v5-document-reads) and [memory migration](/migration/api-v5-recall).
|