Authentication
All requests to the Heify API must be authenticated using an API Key. This key identifies your account and ensures secure access to your transcription resources.Obtaining Your API Key
You can generate and manage your API Keys from the Sandbox or your Heify Dashboard.1
Access the Sandbox
Navigate to the Sandbox and authenticate with your credentials
2
Go to API Keys section
Access the API Keys & Sandbox page
3
Generate a new key
Click “Create New API Key” and give it a descriptive name
4
Save your key securely
Copy the key immediately - it will only be shown once
Using Your API Key
Include your API key in thex-api-key header with every API request:
Header Format
| Header | Value |
|---|---|
x-api-key | YOUR_API_KEY |
Content-Type | application/json |
Example Requests
Best Practices
Use environment variables
Use environment variables
Store your API key in environment variables, not in your source code.Then reference it in your code:
Create separate keys for different environments
Create separate keys for different environments
Use different API keys for development, staging, and production environments. This allows you to rotate keys without affecting all environments.
Rotate keys regularly
Rotate keys regularly
For enhanced security, periodically generate new API keys and deactivate old ones from your dashboard.
Authentication Errors
If authentication fails, you’ll receive a403 Forbidden response.
Common causes of authentication errors:
- Missing header: The
x-api-keyheader was not included in the request - Invalid key: The API key is incorrect or has been deactivated
- Expired key: The API key has been deleted from your account