Errors
All errors return a consistent JSON envelope with a machine-readable code, human-readable message, and a unique request ID for debugging.
What does error code X mean?
Error code X means the request failed for the machine-readable reason returned in error.code; replace X with codes such as VALIDATION_ERROR, UNAUTHORIZED, or RATE_LIMIT_EXCEEDED and use the table below for the required action. Include the response request ID when contacting support, and retry only errors marked retryable.
Error format
{
"ok": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid value for employee_bands: 'Huge'.",
"details": [
{
"field": "employee_bands",
"issue": "invalid_enum_value",
"received": "Huge",
"expected": ["Small Employers", "SMB Accounts", "..."]
}
],
"request_id": "req_8f3a2b1c4d5e6f7a"
}
}The request_id is also returned in the X-Request-Id response header on every request (including successes). Include it in support requests.
Status codes
This table is generated from the same registry as GET /v1/docs/api/errors.
| Status | Code | Retryable? | What it means |
|---|---|---|---|
| 400 | EXPORT_TOO_LARGE | No | A CSV export without page_size matches more rows than the export limit (2,000; 100 for test keys). details[0] carries received (the match count) and limit. Narrow the filters, or pass page_size and page to export in parts. Nothing is charged. |
| 400 | FILTER_REQUIRED | No | The request needs at least one filter. |
| 400 | HTTPS_REQUIRED | No | The request was sent over plain HTTP. The load balancer rejects it before it reaches the API, so the response has no request_id. Resend over https://, and rotate any API key that was sent over HTTP. Nothing is charged. |
| 400 | PRODUCTION_KEY_REQUIRED | No | A test key called an endpoint outside the sandbox read set. Per-company paths such as /companies/{id}/history and /companies/{id}/401k-history also require a production key. |
| 400 | VALIDATION_ERROR | No | A parameter, body field, or filter value is invalid, or the request body is not valid JSON (issue: invalid_json). details[] entries carry field, issue, and received; when the accepted values are known they are listed in expected, a single numeric bound is given in limit, and a range in minimum and maximum. A dry_run=true request fails with the same error as the real call. |
| 401 | UNAUTHORIZED | No | The bearer credential is missing or invalid. |
| 402 | INSUFFICIENT_CREDITS | No | The organization does not have enough credits for the request. |
| 403 | FIELD_NOT_ALLOWED | No | A requested field is not granted by the key's field tier, or is not offered as a response field. |
| 403 | FORBIDDEN | No | The key lacks the required scope or plan level, or the organisation does not have this endpoint enabled (details issue endpoint_not_enabled; contact Hillwinds rather than retrying). |
| 403 | ORGANIZATION_ACCESS_DENIED | No | The caller has no active membership in the organization or lacks the required tag permission. |
| 403 | USER_CONTEXT_UNAVAILABLE | No | The key is not tied to a user context that this endpoint needs. |
| 404 | NOT_FOUND | No | The resource does not exist or is not visible to the caller. |
| 404 | NO_MATCHES | No | The request matched no records. |
| 405 | METHOD_NOT_ALLOWED | No | The HTTP method is not allowed for this route. |
| 409 | ACCOUNT_ALREADY_EXISTS | No | An account already exists for the supplied identity. |
| 409 | CONFLICT | No | The request conflicts with the current state of the resource. |
| 409 | CREATION_RESULT_UNAVAILABLE | No | The result of an earlier creation request is no longer available. |
| 409 | CREDIT_LIMIT_EXCEEDED | No | The charge is above X-Hillwinds-Max-Credits; nothing was charged. Request a new quote with dry_run=true. details[] carries requested_maximum and estimated_credits. |
| 409 | IDEMPOTENCY_CONFLICT | No | The idempotency key was already used with a different request. |
| 409 | IDEMPOTENCY_KEY_REUSE | No | The Idempotency-Key was reused with a different canonical payload. |
| 409 | KEY_LIMIT_REACHED | No | The account already has the maximum number of active API keys (default 25). Revoke one before creating another. |
| 409 | SYNC_BASELINE_REQUIRED | No | The since cutoff predates the change-tracking baseline; run a new full sync. |
| 412 | PRECONDITION_FAILED | No | The If-Match precondition did not match the current version. |
| 413 | RESPONSE_TOO_LARGE | No | The company history response would exceed 2 MB. Narrow years, since_year, or include and retry. |
| 422 | INVALID_SEED | No | One or more lookalike seeds are unavailable; details[] identifies each in received. |
| 428 | PRECONDITION_REQUIRED | No | The request must include a precondition header. |
| 429 | CRAWL_DETECTED | Yes | Bulk-crawl pattern detected. Do not retry blindly; add filter diversity. |
| 429 | DAILY_ROW_LIMIT | Yes | The daily row quota is used up. Wait until the next UTC day. |
| 429 | RATE_LIMIT_EXCEEDED | Yes | Per-key request rate exceeded. Wait for Retry-After. |
| 500 | CONFIGURATION_ERROR | No | The API is misconfigured. Contact support with the request ID. |
| 500 | INTERNAL_ERROR | Yes | An unexpected server failure. Retry with backoff and include the request ID in support requests. |
| 500 | LOOKALIKE_FAILED | Yes | A lookalike job failed. Retry later. |
| 503 | API_SCHEMA_NOT_READY | Yes | The API data schema is not ready. Retry later. |
| 503 | CHANGE_TRACKING_NOT_READY | Yes | Durable change tracking is not initialized for since. Retry later. |
| 503 | METADATA_TABLE_MISSING | Yes | Required metadata is not available yet. Retry later. |
| 503 | QUERY_UNAVAILABLE | Yes | The query backend is temporarily unavailable. Retry with backoff. |
| 503 | RATE_LIMIT_UNAVAILABLE | Yes | Request rate limiting is temporarily unavailable, so the request was refused. Wait for Retry-After and retry. |
| 503 | UNAVAILABLE | Yes | The service is temporarily unavailable. Retry with backoff. |
| 504 | LOOKALIKE_TIMEOUT | Yes | A lookalike query timed out. Narrow the request and retry. |
| 504 | TIMEOUT | Yes | The request exceeded the maximum execution time. Add filters or reduce page_size, then retry. |
Retry strategy
| Error | Strategy |
|---|---|
| 429 per-minute rate limit | Wait Retry-After seconds, then retry |
| 429 DAILY_ROW_LIMIT | Wait until midnight UTC |
| 429 CRAWL_DETECTED | Don't blindly retry — add filter diversity, then resume |
| 500 server error | Retry up to 3 times: wait 1s, 2s, 4s |
| 503 CHANGE_TRACKING_NOT_READY / QUERY_UNAVAILABLE | Retry with backoff: 1s, 2s, 4s. If it persists after 3 attempts, contact support. |
| 504 TIMEOUT | Add more filters, reduce page_size, drop expensive signal enrichments, then retry |
| 409 CREDIT_LIMIT_EXCEEDED | Do not retry unchanged. Request a new quote or raise the limit |
Error detail fields
| Field | Type | When present | Description |
|---|---|---|---|
field | string | Validation errors | Parameter that caused the error |
issue | string | Always | Machine-readable issue code |
received | string | Validation errors | The invalid value submitted |
expected | string | string[] | Validation errors | Valid values or format |
limit | number | Quota, rate, and credit-limit errors | The limit that was exceeded |
retry_after_seconds | number | 429 errors | Seconds to wait before retrying |
Issue types
Every error includes a machine-readable issue field. Use it to branch in client code instead of pattern-matching on message.
| Issue | When |
|---|---|
invalid_enum_value | Filter value not in the allowlist |
invalid_type | Wrong data type (e.g. string where boolean expected) |
missing_required | Required parameter not provided (e.g. personnel without lead_type) |
invalid_range | Numeric range syntax error (e.g. cf[x]=gte:abc) |
unknown_param | Query string contains an unrecognized parameter |
repeated_param | A single-value query parameter was sent more than once |
credit_limit_exceeded | History charge is above X-Hillwinds-Max-Credits; limit carries the header value |
page_size_too_large | page_size > 500 |
not_sortable | sort_by references a non-allowlisted column |
too_many_filters | More than 15 distinct filters |
too_many_column_filters | More than 10 cf[] filters |
filter_required | page_size > 25 with no filters |
insufficient_scope | API key lacks the required scope |
insufficient_field_tier | Basic key requested an advanced field (via mode=full or fields=) |
insufficient_plan | Feature not available on the org's plan |
credits_exhausted | Org credit balance is 0 |
credit_deduction_failed | Credit deduction failed after query — data not returned |
rate_limited | Per-key per-minute rate limit exceeded |
daily_row_limit | Org daily row cap exceeded |
crawl_detected | Sequential pagination beyond 20 pages without filter changes |
query_timeout | Query exceeded 30s execution time |
not_found | Entity ID or resource path not found |
key_inactive | API key has been revoked or expired |
internal_error | Unexpected server error |
Keys are issued by our team, not a signup form. Book a 25-minute walkthrough and you'll leave with sandbox and live credentials.