Skip to main content

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

  1. Log in at console.compilelabs.com
  2. Go to SettingsAPI Keys
  3. Click Create API Key
  4. Give it a name (e.g., “Production App”)
  5. 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:
  1. Go to SettingsAPI Keys
  2. View all your API keys with their names and creation dates
  3. Disable or delete keys as needed

Rotate Keys

  1. Create a new API key
  2. Update your applications to use the new key
  3. 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:
  1. Navigate to OrganizationsAPI Keys
  2. View all organization API keys
  3. Create new keys for team usage
  4. Manage quotas and permissions for each key

Next Steps