General Introduction
Response Codes
6min
overview explore the variety of possible response codes and what they mean these error codes can be encountered in all response codes docid\ sp7phdapzbmyiyggsihfw codes received with elasticsearch dsl, search filters, and collect endpoints response codes docid\ sp7phdapzbmyiyggsihfw codes received with bulk collect endpoints response codes docid\ sp7phdapzbmyiyggsihfw codes received with webhook subscription endpoints search and collect response codes response code description 200 a successful request 400 r equest was unacceptable, often due to a missing required parameter the error message differs based on the error { "error" "query validation failed failed to parse query \[('it company' or 'labs']" } { "error" "query validation failed failed to create query \[nested] failed to find nested object under path \[member experience collection]" } { "error" "query validation failed \[fuzzy] query doesn't support multiple fields, found \[must] and \[must]" } { "error" "query validation failed request does not support \[query string]" } { "error" "query validation failed failed to create query compile error" } { "error" "failed to parse es dsl query" } { "error" "query results count exceeds allowed limit" } { "error" "query execution was cancelled due to timeout" } { "error" "query validation failed failed to create query compile error" } 401 no valid api key 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 404 page not found nonexistent id using a profile id that does not exist in our database, you will receive the following response { "detail" "member not found" } 422 in correct data structure or data types are provided in the request { "detail" \[ { "loc" \[ "body", 22 ], "msg" "expecting property name enclosed in double quotes line 3 column 1 (char 22)", "type" "value error jsondecode", "ctx" { "msg" "expecting property name enclosed in double quotes", "doc" "{\n \\"name\\" \\"string\\",\n}", "pos" 22, "lineno" 3, "colno" 1 } } ] } { "detail" \[ { "loc" \[ "body" ], "msg" "duplicate keys are not allowed within filters", "type" "value error duplicate" } ] } 429 endpoint rate limit has been exceeded all api endpoints restrict the number of requests allowed per second for each client's api key find all rate limits rate limits docid\ squdqdywlhegdpyfhbzy8 500 c ode 500 denotes server issues one possible example is that the wrong request type was selected (post/get) 502 bad gateway 503 service is unavailable due to too many requests being received by our api "error" "service is temporarily unavailable" bulk collect response codes response codes description 201 a successful request 202 the process is in progress { "message" "data request is still being processed" } 400 indicates incorrectly formatted or oversized files or invalid data { "detail" "file does not contain any data" } { "detail" "unable to parse the file" } { "detail" "file should consist of a single column" } { "detail" "file contains invalid ids" } 402 insufficient credits reduce your request size or contact your account manager to get more credits note error code can be received using search and collect endpoints { "detail" "insufficient credits" } 404 request did not find any matching ids { "detail" "the request matched 0 ids" } 409 duplicate post requests were submitted { "detail" "identical data request is already in progress " } 422 request exceeded the limit of 10k ids { "detail" "the request matched too many ids maximum is 10000 ids" } 503 b ulk collect allows yo u 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 "error" "file has expired and is no longer available" subscriptions response codes id endpoint response codes request code description 200 a successful request 400 error codes indicate failures due to incorrectly formatted or oversized files or invalid data the error message differs based on the error { "detail" "file does not contain any data" } { "detail" "file needs to be a csv file" } { "detail" "file needs to be smaller than 15mb" } { "detail" "unable to read the csv file" } { "detail" "file should consist of a single column" } { "detail" "file contains invalid ids" } { "detail" "file contains incorrect ids" } { "detail" "file contains too many ids" } 401 no valid api key was provided check if your token is valid and try again { "detail" "could not identify user" } 422 the webhook url you provided is invalid { "detail" "provided webhook url is not valid" } 5xx unable to create subscription due to a server error { "detail" "unable to create subscription" } search filter and es dsl endpoint response codes request code description 200 a successful request 400 t he request was unacceptable, often due to a missing required parameter the error message differs based on the error { "error" "query validation failed failed to parse query \[('it company' or 'labs']" } { "error" "query validation failed failed to create query \[nested] failed to find nested object under path \[member experience collection]" } { "error" "query validation failed \[fuzzy] query doesn't support multiple fields, found \[must] and \[must]" } { "error" "query validation failed request does not support \[query string]" } { "error" "query validation failed failed to create query compile error" } { "error" "failed to parse es dsl query" } { "error" " query results count exceeds allowed limit" } 401 no valid api key was provided check if your token is valid and try again { "detail" "could not identify user" } 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)