API Key Authentication
All each::labs APIs authenticate requests with your API key sent as a Bearer token in theAuthorization header.
Getting Your API Key
- Sign in to eachlabs.ai
- Navigate to Settings > API Keys
- Click Create API Key
- Copy and store your key securely
Using the API Key
Include theAuthorization: Bearer YOUR_API_KEY header in every request:
Authentication per Product
One exception: public workflow triggers take your key as
api_key in the JSON request body instead of a Bearer header — see Public Workflows.Some endpoints like
GET /v1/models (listing models) do not require authentication. Check individual endpoint documentation for details.Authentication Errors
If your API key is missing or invalid, you’ll receive a401 response:
Common Causes
Security Best Practices
- Store API keys in environment variables, never in source code
- Use different keys for development and production
- Rotate keys periodically
- Revoke compromised keys immediately from your dashboard