Overview
API keys are your credentials for accessing the Compile Labs API. Keep them secure and manage them through your dashboard.Creating an API Key
- Log in at console.compilelabs.com
- Go to Settings → API Keys
- Click Create API Key
- Give it a name (e.g., “Production App”)
- Copy the key immediately
Using an API Key
Include your API key in theAuthorization header:
Key Management
Manage your API keys through the dashboard at console.compilelabs.com:- Go to Settings → API Keys
- View all your API keys with their names and creation dates
- Disable or delete keys as needed
Rotate Keys
- Create a new API key
- Update your applications to use the new key
- Delete the old key
Security Best Practices
- Never share API keys publicly
- Rotate keys regularly
- Use different keys for different environments
- Monitor key usage for anomalies
- Revoke compromised keys immediately
Organization API Keys
For organization-level API keys:- Navigate to Organizations → API Keys
- View all organization API keys
- Create new keys for team usage
- Manage quotas and permissions for each key
Next Steps
Quickstart
Get started with your API key
OpenAI Chat Completions
Start building with chat
Examples
See authentication examples
Organizations
Manage team access