API Keys
Create and manage API keys used to authenticate HuntCode API requests, SDKs, CLI tools, and future integrations.
Create an API Key
- Sign in to your HuntCode account.
- Navigate to Settings -> API Keys.
- Enter a descriptive name for the key.
- Select Create API Key.
- Copy the generated API key.
- Store the key securely before closing the dialog.
Bearer Authentication
Include your API key in the Authorization header using the Bearer scheme.
Authorization: Bearer hc_live_your_api_key
Security
- Never commit API keys to source control.
- Never expose API keys in frontend JavaScript.
- Store API keys in environment variables.
- Rotate compromised keys immediately.
Revoke an API Key
Open Settings -> API Keys and select Revoke next to the key you wish to disable.