API Key Authentication
Memory Machines uses API key authentication. Include your API key in thex-api-key header with every request.
Getting an API Key
API keys are currently issued manually during the beta period.1
Request Access
Email support@memorymachines.ai with:
- Your name
- Company/use case
- Expected usage volume
2
Receive Your Key
We’ll provision your account and send your API key securely.
3
Test Your Key
Verify it works:
Using Your API Key
Header Format
All authenticated requests require thex-api-key header:
| Header | Value |
|---|---|
x-api-key | Your API key |
Example Requests
Security Best Practices
Environment Variables
Store your API key in environment variables, not in code.
Server-Side Only
Never expose your API key in client-side JavaScript. Make API calls from your backend.
Rotate if Compromised
If you suspect your key is compromised, contact us immediately for a new one.
One Key Per App
Use separate API keys for development and production environments.
Rate Limits
| Limit | Value |
|---|---|
| Requests per minute | 1,000 |
| Max file size | 10 MB |
| Max query length | 1,000 characters |
429 Too Many Requests response:
Error Responses
401 Unauthorized
Your API key is missing or invalid.- Verify the
x-api-keyheader is included - Check for typos in your API key
- Ensure your key hasn’t been revoked
403 Forbidden
Your API key is valid but you don’t have permission for this resource.- Verify you’re accessing your own data
- Contact support if you believe this is an error
Data Isolation
Each API key is associated with a single user account. Your data is completely isolated:- Encryption: All your data is encrypted with a unique key tied to your account
- Namespace: Your memories are stored in a separate namespace
- Access Control: You can only access your own documents and memories
Memory Machines uses envelope encryption with Google Cloud KMS. Your encryption key never leaves Google’s infrastructure.

