Authentication
Generate and send API keys with every UpHunt request.
All UpHunt API requests require an API key sent via the x-api-key header. Keys are scoped to a single UpHunt account and inherit its auto-apply credits.
Generate a key
Sign in to your UpHunt Dashboard.
Navigate to Auto-Apply → API & Webhooks.
Click Generate API Key. Copy the key immediately — we only show it once.
Send the header
Security: Keep your API key secret. Never ship it in client-side bundles or commit it to git. Regenerate immediately if exposed.
Rotating keys
Each account supports one active API key at a time. Generating a new key revokes the old one immediately — plan a brief cutover if you rotate during live traffic.
Common auth errors
| Code | Meaning | What to do |
|---|---|---|
401 | Missing x-api-key | Add the header to your request. |
401 | Invalid x-api-key | Key was revoked or mistyped. Regenerate in the dashboard. |
402 | Insufficient credits | Top up auto-apply credits before retrying. |
See Errors for the full list.