error field containing a human-readable message.
Error response format
Every non-2xx response follows this shape:error to help you fix the problem. For example, submitting an unknown webhook event returns:
HTTP status codes
| Status | Meaning | Common causes |
|---|---|---|
200 OK | Success | — |
201 Created | Resource created | Webhook endpoint registered |
204 No Content | Success, no body | Webhook deleted |
400 Bad Request | Invalid parameters | Missing required field, invalid JSON body, bad URL |
401 Unauthorized | Authentication failed | Missing, malformed, or revoked API key |
404 Not Found | Resource not found | Competitor ID doesn’t exist or doesn’t belong to your account |
422 Unprocessable Entity | Validation error | Webhook limit of 10 reached |
500 Internal Server Error | Server error | Unexpected server-side failure |
400 Bad Request
You sent a request the server could not understand. This typically means a required parameter is absent or has the wrong type.401 Unauthorized
Your API key is missing or invalid. See Authentication for the correct header format.404 Not Found
The requested resource doesn’t exist, or it exists but belongs to a different account. NearIQ returns404 (not 403) in both cases to avoid leaking information about other accounts.
422 Unprocessable Entity
Your request was well-formed but couldn’t be completed due to a business rule. The most common example is exceeding the 10-webhook limit per account.500 Internal Server Error
Something went wrong on our end. These are rare — if you see a 500 on a request that was previously working, check the NearIQ status page or contact support.Rate limiting
The NearIQ API enforces per-account rate limits. When you exceed the limit, requests return429 Too Many Requests. The response includes a Retry-After header indicating how many seconds to wait before retrying.