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.
Keys start with ctx_ and are shown only once when created. Store them securely.
Creating an API key
- Sign in to the MemoryKit Platform
- Navigate to API Keys
- Click Create API Key
- Select the project and scopes
- 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:
| Scope | Description |
|---|---|
memories:read | Read and search memories |
memories:write | Create, update, and delete memories |
chats:read | Read chat sessions and history |
chats:write | Create chats and send messages |
users:read | Read user data |
users:write | Create 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