MemoryKit

Authentication

Authenticate API requests with project-scoped API keys.

API Keys

All API requests require an API key sent in the Authorization header. API keys are project-scoped — create them in your dashboard.

Authorization: Bearer ctx_your_api_key_here

Keys start with ctx_ and are shown only once when created. Store them securely.

Creating an API key

  1. Sign in to the MemoryKit Platform
  2. Navigate to API Keys
  3. Click Create API Key
  4. Select the project and scopes
  5. Copy and securely store the key

API keys are displayed only once at creation time. If you lose a key, you'll need to create a new one.

Key scopes

API keys can be scoped to limit access:

ScopeDescription
memories:readRead and search memories
memories:writeCreate, update, and delete memories
chats:readRead chat sessions and history
chats:writeCreate chats and send messages
users:readRead user data
users:writeCreate and update users

Security best practices

  • Never expose API keys in client-side code
  • Use environment variables to store keys
  • Rotate keys periodically
  • Use the minimum required scopes

On this page