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
1{2"Error":"Query validation failed: Failed to parse query [('IT Company' OR 'Labs']"3},4{5"Error":"Query validation failed: failed to create query: [nested] failed to find nested object under path [member_experience_collection]"6},7{8"Error":"Query validation failed: [fuzzy] query doesn't support multiple fields, found [must] and [must]"9},10{11"Error":"Query validation failed: request does not support [query_string]"12},13{14"Error":"Query validation failed: failed to create query: compile error"15},16{17"Error":"Failed to parse es dsl query"18},19{20"Error":"Query results count exceeds allowed limit"21},22{23"Error":"Query execution was cancelled due to timeout"24},25{26"Error":"Query validation failed: failed to create query: compile error"27}


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
1{2"detail":"Member not found"3}


Error code
Description
422
Incorrect data structure or data types provided in the request.
422
Duplicate keys
1{2"detail":[3{4"loc":[5"body"6],7"msg":"Duplicate keys are not allowed within filters",8"type":"value_error.duplicate"9}10]11}


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
1Bad Gateway


Code
Explanation
503
Service is unavailable due to too many requests received by our API.
503
1"Error":"Service is temporarily unavailable"


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
1{2"detail":"File does not contain any data"3},4{5"detail":"Unable to parse the file"6},7{8"detail":"File should consist of a single column"9},10{11"detail":"File contains invalid IDs"12}

Error code
Description
402
Insufficient credits. Reduce your request size or contact your account manager to get more credits.
Insufficient credits
1{2"detail":"Insufficient credits"3}

Error code
Description
409
Duplicate POST requests were submitted.
409
1{2"detail":"Identical data request is already in progress."3}

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
1"Error":"File has expired and is no longer available"


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
1{2"detail":"File does not contain any data"3},4{5"detail":"File needs to be a CSV file"6},7{8"detail":"File needs to be smaller than 15MB"9},10{11"detail":"Unable to read the CSV file"12},13{14"detail":"File should consist of a single column"15},16{17"detail":"File contains invalid IDs"18},19{20"detail":"File contains incorrect IDs"21},22{23"detail":"File contains too many IDs"24}25

Error code
Description
422
The webhook URL you provided is invalid.
Insufficient credits
1{2"detail":"Provided webhook URL is not valid"3}

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
1{2"detail":"Could not identify user"3}

Error code
Description
5xx
Unable to create subscription due to a server error.
Could not indentify the user
1{2"detail":"Unable to create subscription"3}

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
1{2"Error":"Query validation failed: Failed to parse query [('IT Company' OR 'Labs']"3},4{5"Error":"Query validation failed: failed to create query: [nested] failed to find nested object under path [member_experience_collection]"6},7{8"Error":"Query validation failed: [fuzzy] query doesn't support multiple fields, found [must] and [must]"9},10{11"Error":"Query validation failed: request does not support [query_string]"12},13{14"Error":"Query validation failed: failed to create query: compile error"15},16{17"Error":"Failed to parse es dsl query"18},19{20"Error":" Query results count exceeds allowed limit"21}22

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
1{2"detail":"Could not identify user"3}

Error code
Description
422
There are two possible reasons for the 422 error code:
The webhook URL you provided is invalid
You have used incompatible filters (such as any date filter from search filters or ES DSL schema).
Incorrect webhook URL
Incompatible filters
1{2"detail":"Field '<date-field>' is not allowed in subscription filters/es_dsl"3}
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key