Authentication
The Levrage.AI API uses Bearer token authentication. All requests (except public discovery endpoints) require an API key.
Getting Your API Key
- Log in to the Levrage.AI Studio
- Go to Settings → Developers → API Keys
- Click Generate New Key
- Copy and store your key securely — it’s only shown once
Your API key grants full access to your account’s agents, calls, and campaigns. Keep it secret. Never expose it in frontend code or public repositories.
Using Your API Key
Include it in the Authorization header as a Bearer token:
Code Examples
Public Endpoints
These endpoints do not require authentication:
Error Responses
Rate Limits
Rate limit headers are included in every response:
Best Practices
- Store keys in environment variables — Never hardcode in source files
- Use server-side only — Never call the API from browser/mobile frontend
- Rotate keys regularly — Generate new keys and revoke old ones
- Use one key per environment — Separate keys for dev, staging, production