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
API keys are only shown once. Store them securely and never commit them to version control.
Using an API Key
Include your API key in the Authorization header:
curl https://api.compilelabs.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{...}'
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