API Keys
Learn how to manage your HL Hunt API keys and submit an authenticated request.
HL Hunt API requests are authenticated with API Keys. HL Hunt uses HTTP Basic Authentication with a username:password combination. You can get API Keys for the Sandbox and Live environments from the HL Hunt Dashboard.
Creating API Keys
To create an API Key:
- Navigate to Developers > API Keys in the HL Hunt Dashboard.
- Click Create API Key and enter a Display Name (can be anything).
- Save the credentials somewhere secure.
Store API Keys Securely
Save your password somewhere secure. You cannot re-copy the password, but you can always create another API Key. API Keys are sensitive data and must be treated like passwords. Store them securely and only share them on an as-needed basis.
API Authentication
All API requests authenticate with a single secret key sent as a Bearer token:
curl "https://api.hlhunt.org/v1/charges" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk_live_your_api_key"Replace sk_live_your_api_key with the secret key from your Dashboard (Developers → API Keys). The secret key is the only credential you send with API requests — there is no additional signing secret — so keep it server-side only. Your dashboard also issues a publishable key (pk_live_xxx / pk_test_xxx) that is safe to expose in the browser and is used for card tokenization and embedded checkout.
API Key Permission Levels
| Level | Description |
|---|---|
| Full Access | Read and write access to all resources. |
| Read Only | Read access only. Cannot create or modify resources. |