Sandbox vs Production: API keys are environment-specific. Generate sandbox keys from sandbox.klara-ai.com and production keys from app.klara-ai.com. Keys from one environment do not work in the other.
API key format
API keys consist of two parts separated by a period:Using your API key
Include your API key in theAuthorization header of every request:
Managing API keys
Creating a key
- Go to Settings → Integrations → API Keys in your Klara dashboard
- Click Create API Key
- Enter a descriptive name
- Copy the full key immediately—the secret is only shown once
Revoking a key
- Go to Settings → Integrations → API Keys
- Find the key you want to revoke
- Click Revoke and confirm
Scopes
API keys are created with scopes that determine what actions they can perform:Error responses
Authentication failures return a401 Unauthorized response:
