Hillwinds API
Errors

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

json
{
  "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.

StatusCodeRetryable?What it means
400EXPORT_TOO_LARGENoA 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.
400FILTER_REQUIREDNoThe request needs at least one filter.
400HTTPS_REQUIREDNoThe 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.
400PRODUCTION_KEY_REQUIREDNoA 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.
400VALIDATION_ERRORNoA 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.
401UNAUTHORIZEDNoThe bearer credential is missing or invalid.
402INSUFFICIENT_CREDITSNoThe organization does not have enough credits for the request.
403FIELD_NOT_ALLOWEDNoA requested field is not granted by the key's field tier, or is not offered as a response field.
403FORBIDDENNoThe 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).
403ORGANIZATION_ACCESS_DENIEDNoThe caller has no active membership in the organization or lacks the required tag permission.
403USER_CONTEXT_UNAVAILABLENoThe key is not tied to a user context that this endpoint needs.
404NOT_FOUNDNoThe resource does not exist or is not visible to the caller.
404NO_MATCHESNoThe request matched no records.
405METHOD_NOT_ALLOWEDNoThe HTTP method is not allowed for this route.
409ACCOUNT_ALREADY_EXISTSNoAn account already exists for the supplied identity.
409CONFLICTNoThe request conflicts with the current state of the resource.
409CREATION_RESULT_UNAVAILABLENoThe result of an earlier creation request is no longer available.
409CREDIT_LIMIT_EXCEEDEDNoThe 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.
409IDEMPOTENCY_CONFLICTNoThe idempotency key was already used with a different request.
409IDEMPOTENCY_KEY_REUSENoThe Idempotency-Key was reused with a different canonical payload.
409KEY_LIMIT_REACHEDNoThe account already has the maximum number of active API keys (default 25). Revoke one before creating another.
409SYNC_BASELINE_REQUIREDNoThe since cutoff predates the change-tracking baseline; run a new full sync.
412PRECONDITION_FAILEDNoThe If-Match precondition did not match the current version.
413RESPONSE_TOO_LARGENoThe company history response would exceed 2 MB. Narrow years, since_year, or include and retry.
422INVALID_SEEDNoOne or more lookalike seeds are unavailable; details[] identifies each in received.
428PRECONDITION_REQUIREDNoThe request must include a precondition header.
429CRAWL_DETECTEDYesBulk-crawl pattern detected. Do not retry blindly; add filter diversity.
429DAILY_ROW_LIMITYesThe daily row quota is used up. Wait until the next UTC day.
429RATE_LIMIT_EXCEEDEDYesPer-key request rate exceeded. Wait for Retry-After.
500CONFIGURATION_ERRORNoThe API is misconfigured. Contact support with the request ID.
500INTERNAL_ERRORYesAn unexpected server failure. Retry with backoff and include the request ID in support requests.
500LOOKALIKE_FAILEDYesA lookalike job failed. Retry later.
503API_SCHEMA_NOT_READYYesThe API data schema is not ready. Retry later.
503CHANGE_TRACKING_NOT_READYYesDurable change tracking is not initialized for since. Retry later.
503METADATA_TABLE_MISSINGYesRequired metadata is not available yet. Retry later.
503QUERY_UNAVAILABLEYesThe query backend is temporarily unavailable. Retry with backoff.
503RATE_LIMIT_UNAVAILABLEYesRequest rate limiting is temporarily unavailable, so the request was refused. Wait for Retry-After and retry.
503UNAVAILABLEYesThe service is temporarily unavailable. Retry with backoff.
504LOOKALIKE_TIMEOUTYesA lookalike query timed out. Narrow the request and retry.
504TIMEOUTYesThe request exceeded the maximum execution time. Add filters or reduce page_size, then retry.

Retry strategy

ErrorStrategy
429 per-minute rate limitWait Retry-After seconds, then retry
429 DAILY_ROW_LIMITWait until midnight UTC
429 CRAWL_DETECTEDDon't blindly retry — add filter diversity, then resume
500 server errorRetry up to 3 times: wait 1s, 2s, 4s
503 CHANGE_TRACKING_NOT_READY / QUERY_UNAVAILABLERetry with backoff: 1s, 2s, 4s. If it persists after 3 attempts, contact support.
504 TIMEOUTAdd more filters, reduce page_size, drop expensive signal enrichments, then retry
409 CREDIT_LIMIT_EXCEEDEDDo not retry unchanged. Request a new quote or raise the limit

Error detail fields

FieldTypeWhen presentDescription
fieldstringValidation errorsParameter that caused the error
issuestringAlwaysMachine-readable issue code
receivedstringValidation errorsThe invalid value submitted
expectedstring | string[]Validation errorsValid values or format
limitnumberQuota, rate, and credit-limit errorsThe limit that was exceeded
retry_after_secondsnumber429 errorsSeconds 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.

IssueWhen
invalid_enum_valueFilter value not in the allowlist
invalid_typeWrong data type (e.g. string where boolean expected)
missing_requiredRequired parameter not provided (e.g. personnel without lead_type)
invalid_rangeNumeric range syntax error (e.g. cf[x]=gte:abc)
unknown_paramQuery string contains an unrecognized parameter
repeated_paramA single-value query parameter was sent more than once
credit_limit_exceededHistory charge is above X-Hillwinds-Max-Credits; limit carries the header value
page_size_too_largepage_size > 500
not_sortablesort_by references a non-allowlisted column
too_many_filtersMore than 15 distinct filters
too_many_column_filtersMore than 10 cf[] filters
filter_requiredpage_size > 25 with no filters
insufficient_scopeAPI key lacks the required scope
insufficient_field_tierBasic key requested an advanced field (via mode=full or fields=)
insufficient_planFeature not available on the org's plan
credits_exhaustedOrg credit balance is 0
credit_deduction_failedCredit deduction failed after query — data not returned
rate_limitedPer-key per-minute rate limit exceeded
daily_row_limitOrg daily row cap exceeded
crawl_detectedSequential pagination beyond 20 pages without filter changes
query_timeoutQuery exceeded 30s execution time
not_foundEntity ID or resource path not found
key_inactiveAPI key has been revoked or expired
internal_errorUnexpected server error
Need a key?

Keys are issued by our team, not a signup form. Book a 25-minute walkthrough and you'll leave with sandbox and live credentials.