Namespaces were called container tags (
containerTag) in v3 and v4. Same values, nothing moved. See the v5 migration guide.user_alex lives in its own isolated space, completely separate from memories in user_jordan. This is what makes Supermemory safe to use in multi-tenant applications: one user can never see another user’s memories unless you explicitly query both namespaces.
Group
Bucket memories by user, project, agent, workspace, or any boundary that makes sense for your app.
Isolate
Each namespace maps to its own vector index, so search and retrieval never leak across boundaries.
How it works
When you add a document to a namespace, Supermemory creates that namespace (scoped to your organization) if it does not exist yet. You don’t need to provision anything ahead of time. The first write to a new namespace creates it, and later writes reuse it.A namespace is an opaque identifier you choose. Supermemory does not parse meaning out of it:
user_123, project_mobile, and org:acme:team:growth are all equally valid. Pick a convention that mirrors the access boundaries in your own application.Naming rules
Namespaces are validated on every request. A namespace must:- Be 100 characters or less
- Contain only alphanumeric characters, hyphens (
-), underscores (_), and colons (:)
^[a-zA-Z0-9_:-]+$
org:acme:user:john) that encode several levels of structure in a single identifier.
Scope lives in the URL
In v5 the namespace is a path segment, not a body field. Every scoped endpoint starts with/ns/{namespace}/, and every SDK call takes namespace as a top-level key next to body.
Where namespaces are used
The same namespace flows through the entire lifecycle of a memory. Pass it consistently and your data stays neatly partitioned.Access control
Namespaces are also an authorization boundary, not just an organizational one. Two mechanisms can restrict which namespaces a given caller may touch:- API key scopes — an API key can be limited to a specific set of namespaces, with read or write permission per namespace.
- Member restrictions — an organization member can be granted access to only certain namespaces.
- Requesting a namespace outside the allowed set returns
403 Forbidden. - A write (add/update/delete) to a read-only namespace returns
403 Forbidden.
Managing namespaces
Thenamespaces.* SDK methods read and change a namespace itself, as opposed to the documents inside it.
supportingContext is what v3/v4 called entityContext. The legacy “merge” operation is now a delete with moveTo, one source namespace per request.
Choosing a convention
Pick a naming scheme that maps onto the isolation boundaries your application actually needs.Next steps
Organizing & Filtering
Combine namespaces with metadata filters for precise retrieval.
Scoped API keys
Mint keys that can only touch one namespace — multi-tenant clients without the org master key.
Adding Memories
See namespaces in action across the add API.