X-API-Key header on every request to /openapi/v1/*. There is no HMAC
signing, no timestamp, and no nonce.
The API key is only accepted on the
/openapi/v1/* surface. The dashboard
surface (/api/v1/*) uses a separate session-based login, so an API key can
never be used to manage itself.Managing keys
Create, rotate and revoke keys from the HayInsights dashboard under Account → API keys.1
Create
Generate a key — the full secret (
apk_…) is shown once. Copy it into a
secret store or environment variable immediately.2
Rotate
Rotating issues a new key and revokes the old one in a single step. Update
your environment with the new secret.
3
Revoke
Revoking disables the key immediately on the next request.
Access & quota
Your key inherits the subscription plan on your account. The plan determines both which data domains you can access and your request quota:- A request for a domain your plan doesn’t include returns 403
FEATURE_NOT_IN_PLAN— see Plans & features. - Exceeding your per-minute weight budget returns 429
RATE_LIMIT_EXCEEDED— see Rate limits.
Authentication errors
All four return HTTP
401. See Error codes for the full reference.