Skip to main content

API keys

All API requests require authentication using a Bearer token. Get your API key from the Developer Platform. Include your key in all requests:

Connector branding

When users connect external services (Google Drive, Notion, OneDrive), they see a “Log in to Supermemory” prompt by default. You can replace this with your own app name by providing your own OAuth credentials. This works for Google Drive, Notion, and OneDrive. See the full setup in Customization.

Scoped API keys

Scoped keys are restricted to one namespace (what v3/v4 called a container tag), or to a fixed list of namespaces. They can read and write content only inside those namespaces, subject to the key’s read/write permission and member restrictions — use them to give a client, session, or tenant limited access without shipping your org master key.
Namespace scoping is not read-only access. Writable scoped keys can update and delete documents and forget memories. Deleting or moving a namespace additionally requires an org admin or owner with write access to the source and, for moves, the destination.
Pairs with namespaces for multi-tenant isolation. Allowed endpoints: /ns/{namespace}/document, /ns/{namespace}/list, /ns/{namespace}/search, /ns/{namespace}/profile, and /ns/{namespace}/memories; /namespaces and /ns/{namespace}; /session; and the legacy /v3/documents, /v3/memories, /v4/memories, /v4/conversations, /v3/search, /v4/search, /v4/profile, /v3/container-tags/list, and /v3/session routes. Any other route returns 403. Scoped keys cannot read billing, manage org settings, or mint further keys.

Create a scoped key

The scoped-key endpoint still takes the namespace in a field named containerTag.

Parameters

Requests over the limit return 429 with a Retry-After header.

Response

Use the returned key like a normal API key — it just will not work outside its namespace.

Disable a scoped key

Revoke with the id from creation. Subsequent requests get 401. Memories and namespaces are not deleted.