Hydrant API

Errors

The shape of an error, and what each code means.

Every error has the same shape:

{
  "error": {
    "code": "invalid_parameter",
    "message": "domain: \"not a domain\" isn't a domain.",
    "param": "domain"
  }
}

param names the parameter at fault, when there is one, and suggestion the call to make instead, when there's a better one. Every answer carries an X-Request-Id: quote it when you write to us.

StatusCodeMeans
400invalid_parameterA parameter isn't valid; param says which
400invalid_cursorA cursor from another search, or made up
401missing_api_key, invalid_api_key, key_revoked, key_expiredSee keys
402out_of_credits, daily_cap_reachedSee limits
403scope_missingThe key lacks the scope the endpoint needs
404not_foundNo such endpoint
404company_not_foundNo record for the domain, or the enrichment found no company
404enrichment_not_found, batch_not_foundNo such enrichment or batch, or it ended longer ago than we keep them
405method_not_allowedThe endpoint doesn't take that method
409idempotency_key_reusedThe Idempotency-Key came before with another request
409webhook_secret_missingA webhook_url, from a workspace with no signing secret yet
429rate_limited, test_calls_used_up, test_webhooks_used_up, too_many_unknown_keysSlow down; wait Retry-After
500internal_errorSomething went wrong on our side; quote the X-Request-Id
503enrichment_failedAn enrichment failed on our side; it cost nothing
503enrichments_unavailable, query_timeout, usage_unavailable, api_keys_unavailableWe can't answer just now; retry after Retry-After

A finished enrichment that couldn't be done has an error of its own, with one of these codes: name_ambiguous, name_not_found, invalid_input or enrichment_failed.