Errors
Every error returns JSON withsuccess: falseand a readablemessage. A422also lists each invalid field.
Status codes
Only
429, 500, and 503 are worth retrying as-is. A 400 or 422 fails the same way until you change the request.
Validation errors (422)
The API checks the request body before it runs the request, so a422 never uses records. A body is rejected when it contains:
- A field the endpoint does not define, at any depth. A misspelled filter such as
company.industry.includesreturns a422instead of being ignored. - A value outside an accepted list, such as an industry, job level, or employee range. These values are case-sensitive: copy them from Field Normalization.
- A wrong type or an out-of-range value, such as a string for
max_resultsor more than 50 items in a filter list.
Invalid value
For an unknown field,
field is the object that contains it (body for a top-level field) and message names the rejected field:
Unknown field
Free-text filters such as
name, keywords, job_title, city, and country_code are not checked against a list. A typo in one of them is not an error: the search runs and returns 0 results. See Troubleshooting.
