Skip to main content

API Key Authentication

All each::labs APIs use API key authentication via the X-API-Key header.
curl https://api.eachlabs.ai/v1/models \
  -H "X-API-Key: YOUR_API_KEY"

Getting Your API Key

  1. Sign in to eachlabs.ai
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. Copy and store your key securely
Your API key grants full access to your account. Never expose it in client-side code, public repositories, or logs.

Using the API Key

Include the X-API-Key header in every request:
curl https://api.eachlabs.ai/v1/models \
  -H "X-API-Key: YOUR_API_KEY"

Authentication per Product

ProductHeaderBase URL
each::apiX-API-Keyhttps://api.eachlabs.ai
each::workflowsX-API-Keyhttps://workflows.eachlabs.run/api/v1
each::senseX-API-Keyhttps://eachsense-agent.core.eachlabs.run
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 a 401 response:
{
  "error": "Invalid or missing API key"
}

Common Causes

IssueSolution
Missing headerAdd X-API-Key: YOUR_KEY to your request headers
Invalid keyVerify the key in your dashboard
Expired keyGenerate a new API key
Wrong product URLEnsure you’re using the correct base URL for the product

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
Last modified on March 3, 2026