Response Codes
Explore the variety of possible response codes and what they mean in the Employee API.
These error codes can be encountered in all Employee API endpoints, such as:
- Search and collect endpoints
- Bulk Collect endpoints
- Webhook (subscriptions) endpoints.
A successful query will return the 200 code. An unsuccessful query will return any of the following error codes.
Error code | Description |
---|---|
400 | Request was unacceptable, often due to a missing required parameter. The error message differs based on the error: |
Error code | Description |
---|---|
401 | No valid API bearer token {JWT} was provided. Check if your token is valid and try again. |
404 |
|
Error code | Description |
---|---|
422 | Incorrect data structure or data types provided in the request. |
Error code | Description |
---|---|
429 | Endpoint rate limit has been exceeded. Employee API endpoints restrict the number of requests allowed per second for each client's API token: |
Employee API search endpoints
Employee API collection endpoints
Bulk Collect POST endpoints
Bulk Collect GET endpoints
Webhook endpoints
Allow 18 requests per second.
Allow 54 requests per second.
Allow 27 requests per second.
Allow 27 requests per second.
Allow 9 requests per second.
Error code | Description |
---|---|
5xx | One possible example is that the wrong request type was selected (POST/GET). Code 500 denotes server issues. |
Code | Explanation |
---|---|
503 | Service is unavailable due to too many requests received by our API. |
The following codes are specific to the Bulk Collect endpoints.
Error code | Description |
---|---|
400 | Indicates incorrectly formatted or oversized files or invalid data: |
Error code | Description |
---|---|
402 | Insufficient credits. Reduce your request size or contact your account manager to get more credits. |
Error code | Description |
---|---|
409 | Duplicate POST requests were submitted. |
Error code | Explanation |
---|---|
503 | Bulk Collect allows you to download the prepared dataset as often as you like within 30 days of submitting the query. After 30 days of query submission, the GET query will return a 503 response code with the following message: |
The following codes are specific to the Webhook endpoints.
Error code | Description |
---|---|
400 | Error codes indicating failures due to incorrectly formatted or oversized files or invalid data. The error message differs based on the error: |
Error code | Description |
---|---|
422 | The webhook URL you provided is invalid. |
Error code | Description |
---|---|
401 | No valid API bearer token {JWT} was provided. Check if your token is valid and try again. |
Error code | Description |
---|---|
5xx | Unable to create subscription due to a server error. |
Error code | Description |
---|---|
400 | The request was unacceptable, often due to a missing required parameter. The error message differs based on the error: |
Error code | Description |
---|---|
401 | No valid API bearer token {JWT} was provided. Check if your token is valid and try again. |
Error code | Description |
---|---|
422 | There are two possible reasons for the 422 error code:
|