Authentication
How to authenticate your API requests using API keys.
All endpoints require your organisation's API key sent in the X-API-Key header.
Getting an API Key
- Log in to the EK Hub dashboard
- Navigate to Settings > API Keys
- Click "Create API Key"
- Copy the key — it's only shown once
Using the API Key
Include the X-API-Key header in every request:
Security Best Practices
Never expose your API key in client-side code (browser JavaScript). The API key should only be used from your backend server.
- Store in environment variables — never hardcode in source code
- Each key is scoped to one organisation — it can only access that org's agents and sessions
- Set expiry dates — rotate keys regularly
- Revoke compromised keys immediately from the dashboard
Error Responses
If the API key is missing or invalid, you'll receive: