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.
Prefer the API? Call POST /v1/auth/register with { email, password, full_name }. The response includes an access_token (JWT) you can use immediately — or mint an API key later via POST /v1/auth/api-keys.
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 — pass the API key explicitly to the client constructor.
from hebbrix import MemoryClient
client = MemoryClient(api_key="mem_sk_your_api_key")
# Or pull it from the environment yourself:
# import os; MemoryClient(api_key=os.environ["HEBBRIX_API_KEY"])// TypeScript SDK
import { MemoryClient } from 'hebbrix';
const client = new MemoryClient({
apiKey: 'mem_sk_your_api_key',
});
// Or read from env:
// new MemoryClient({ apiKey: process.env.HEBBRIX_API_KEY! });API 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
Two limits are enforced in parallel: a per-tier requests-per-minute ceiling (to smooth traffic spikes) and a monthly credit allowance (1 credit = 1 billable operation). Individual endpoints may also carry their own stricter per-minute caps — see each endpoint's docs page. Check theX-RateLimit-*response headers for live values.
| Tier | Price | Requests / min | Credits / month |
|---|---|---|---|
| Free | $0 | 60 | 1,000 |
| Starter | $19 / month | 300 | 25,000 |
| Pro | $99 / month | 1,200 | 200,000 |
| Scale | $399 / month | 2,000 | 1,000,000 |
| Enterprise | Custom | 3,000 | Unlimited (metered) |
Endpoint-level caps (beyond the tier ceiling): search is 30/min, chat completions 30/min, media uploads 20/min, batch operations 30/min. Document uploads fall back to your tier's per-minute ceiling. These apply on top of your tier limit and protect expensive code paths.
