Get Your API Key
All API requests require authentication. Learn how to get and use your API key.
Getting an API Key
Create an API key from the Dashboard. Each key can be named and has its own usage tracking.
Using Your API Key
Include your API key in the Authorization header of every request.
/v1/memoriescurl -X GET "https://api.hebbrix.com/v1/memories" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"# Python SDK handles authentication automatically
from hebbrix import Hebbrix
client = Hebbrix(api_key="mem_sk_your_api_key")
# Or set via environment variable
# export HEBBRIX_API_KEY="mem_sk_your_api_key"
client = Hebbrix() # Auto-reads from env// TypeScript SDK
import { Hebbrix } from 'hebbrix';
const client = new Hebbrix({
apiKey: 'mem_sk_your_api_key'
});
// Or use environment variable
// HEBBRIX_API_KEY="mem_sk_your_api_key"
const client = new Hebbrix(); // Auto-reads from envAPI Key Format
Hebbrix API keys start with mem_sk_ followed by a unique identifier.
mem_sk_ed1574f99a48e9df2dcce5e86af2ecf1d4f15d0c1eb34e5191714092cb857e6dSecurity Best Practices
Never expose your API key
Don't commit API keys to version control or include them in client-side code. Use environment variables instead.
Use Environment Variables
Store keys in .env files that are gitignored.
Rotate Keys Regularly
Create new keys periodically and delete old ones from the dashboard.
Use Separate Keys
Create different keys for development, staging, and production.
Monitor Usage
Check the dashboard for unusual activity or unexpected spikes.
Rate Limits
Rate limits vary by endpoint and subscription tier. Check the response headers for current limits.
| Tier | Requests/min | Monthly Calls |
|---|---|---|
| Free | 10 | 1,000 |
| Pro | 100 | 100,000 |
| Enterprise | Custom | Unlimited |
