Authentication
All API requests require authentication via an API Key. kineticRouter uses a unified API Key that works across the currently available protocols.
Getting Your API Key
- Go to the kineticRouter Console
- Open the API Keys page
- Click Create API Key
- Copy and securely store your API Key
The API Key is only displayed once at creation time. Make sure to save it securely. If lost, you’ll need to create a new one.
Authentication Methods
The authentication method varies slightly depending on the protocol you use:
OpenAI Compatible
The OpenAI compatible protocol uses the Authorization header:
Authorization: Bearer <your KINETICROUTER_API_KEY>from openai import OpenAI
client = OpenAI(
base_url="https://api.kineticrouter.com/v1",
api_key="<your KINETICROUTER_API_KEY>"
)Environment Variable Configuration
We recommend using environment variables to manage your API Key to avoid hardcoding:
The Anthropic-native route is planned and its configuration is shown only as a reference. This example is intentionally not copyable in its current display state.
Security Best Practices
- Use environment variables — Never hardcode API Keys in your source code
- Rotate keys regularly — We recommend rotating every 90 days
- Separate environments — Use different API Keys for development and production
- Monitor usage — Regularly check API usage and anomalous calls in the console
- Limit scope — Create separate API Keys for different projects for easier tracking and management
Never commit API Keys to Git repositories or expose them in client-side code. Use .gitignore to exclude .env files.