Employee API

Response Codes

25min

Employee API endpoint 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:

Several examples



Error code

Description

401

No valid API bearer token {JWT} was provided. Check if your token is valid and try again.

404

  • Nonexistent API URL: Using DBAPI instead of CDAPI in the API URL while making a request will result in a 404 error message.
  • Nonexistent ID: Using a profile ID that does not exist in our database, you will receive the following response:
Nonexistent API URL
Noneexistent ID



Error code

Description

422

Incorrect data structure or data types provided in the request.

422
Duplicate keys



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.

502



Code

Explanation

503

Service is unavailable due to too many requests received by our API.

503



Bulk Collect response codes

The following codes are specific to the Bulk Collect endpoints.

Error code

Description

400

Indicates incorrectly formatted or oversized files or invalid data:

Several examples


Error code

Description

402

Insufficient credits. Reduce your request size or contact your account manager to get more credits.

Insufficient credits


Error code

Description

409

Duplicate POST requests were submitted.

409


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:

503



Webhook response codes

The following codes are specific to the Webhook endpoints.

ID endpoint response codes

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:

Several examples


Error code

Description

422

The webhook URL you provided is invalid.

Insufficient credits


Error code

Description

401

No valid API bearer token {JWT} was provided. Check if your token is valid and try again.

Could not indentify the user


Error code

Description

5xx

Unable to create subscription due to a server error.

Could not indentify the user


Filer/ES DSL endpoint response codes

Error code

Description

400

The request was unacceptable, often due to a missing required parameter. The error message differs based on the error:

Several examples


Error code

Description

401

No valid API bearer token {JWT} was provided. Check if your token is valid and try again.

Could not indentify the user


Error code

Description

422

There are two possible reasons for the 422 error code:

  1. The webhook URL you provided is invalid
  2. You have used incompatible filters (such as any date filter from search filters or ES DSL schema).
Incorrect webhook URL
Incompatible filters




Updated 18 Oct 2024
Did this page help you?