Projects, keys, subjects, and namespaces

Use project credentials and stable identity values to keep each memory operation in the intended scope.

#Projects and API keys

Create a project in the dashboard and create a project API key for the server integration. The Bearer key determines the project for REST integration calls. Store it outside browser code and source control; revoke keys that are no longer needed.

#Subjects

Derive subject_id on your server from the authenticated user in your application. Use the same stable value when saving and searching. Do not accept an arbitrary subject ID from an untrusted browser request.

#Namespaces

A namespace separates memory spaces for a subject. Choose it in trusted application configuration and pass the same value to save and search; the default namespace is "default".