Authentication
Create Saber API keys, send Bearer-token requests, and follow key handling practices for secure production integrations.
All API requests require authentication using an API key. Include your API key in the Authorization header:
Authorization: Bearer sk_live_your_api_key_hereGetting your API key
- Log in to your Saber account at ai.saber.app
- Navigate to Settings → API Keys
- Click Create API Key and provide a name
- Copy the key immediately — it will only be shown once
- Store the key securely (environment variable, secret manager, or vault)
Security best practices
Do:
- Store keys securely using environment variables or secret managers
- Use different API keys for different environments (staging, production)
- Monitor API usage logs regularly
- Rotate keys periodically
Don't:
- Hardcode API keys in your source code
- Share API keys in public repositories or documentation
- Use the same API key across multiple external systems
- Commit API keys to version control