X-NearIQ-Key header (preferred) or a standard Authorization: Bearer header — both are accepted on all endpoints.
API access requires the Growth plan or above. If your account is on the free tier, upgrade in Settings → Billing before generating a key.
Base URL
All API endpoints share the following base URL:Getting your API key
Generate a key
Click New API Key, give it a descriptive name, and confirm. Your key is displayed once — copy it immediately.
niq_live_ followed by a random string, for example: niq_live_a1b2c3d4e5f6...
Sending your key
X-NearIQ-Key header (preferred)
Authorization Bearer header
What happens when authentication fails
If your key is missing, malformed, or revoked, the API returns a401 Unauthorized response:
- The key starts with
niq_live_ - The key has not been revoked in Settings → API Keys
- The header name is spelled correctly (
X-NearIQ-Key, notX-Neariq-Key)
Revoking a key
To revoke a key, go to Settings → API Keys and click Revoke next to the key you want to invalidate. Revoked keys immediately stop working; any in-flight requests using that key will fail with401.
Related
- Error reference — full list of status codes and error shapes
- SDK installation — use the JavaScript SDK instead of raw HTTP