Getting Your API Key
1
Log in to the Dashboard
Go to heliosai.health and log in to your account.
2
Navigate to API Keys
Click on API Keys in the left sidebar.
3
Create a New Key
Click Create New Key and give it a descriptive name (e.g., “Production API” or “Development API”).
4
Copy Your Key
Copy the key immediately - it won’t be shown again. Keys start with
sk_live_.Using Your API Key
Include your API key in thex-api-key header with every request. The same API key works for all endpoints (/api/v1/agent and /api/v1/lab-results):
Managing API Keys
From the Dashboard Settings page, you can:Webhook Secret
Your webhook secret is used to verify that incoming webhooks are authentic. You can generate and manage it from the same Settings page:Security Best Practices
Use environment variables
Use environment variables
Never hardcode API keys in your source code. Use environment variables:
Use separate keys for environments
Use separate keys for environments
Create separate API keys for development, staging, and production. This allows you to:
- Track usage per environment
- Revoke compromised keys without affecting production
- Set up different webhook URLs per environment
Rotate keys periodically
Rotate keys periodically
While not required, rotating API keys periodically is a security best practice:
- Create a new key
- Update your application to use the new key
- Verify the new key works
- Revoke the old key
Monitor key usage
Monitor key usage
Check the Last Used column in the Dashboard to monitor key activity. If you see unexpected usage patterns, consider rotating your keys.
Error Responses
If authentication fails, you’ll receive a401 Unauthorized response:
- Missing
x-api-keyheader - Invalid or revoked API key
- Key from a different account
Next Steps
Make Your First Call
Follow the quickstart guide to test your API key.
Set Up Webhooks
Configure secure webhook delivery for results.