Skip to main content

Standard API errors

When interacting with iDenfy API you may encounter error responses. This means that you have tried to do an action which is not allowed or malformed in some way.

A standard error response has a HTTP status code 400 and a JSON body which contains:

JSON keyExplanation
identifierA constant indicating a type of error. Never changes, therefore can be used in code to automate processes. For possible values see the table below.
messageA human readable message describing an error. Mainly used for programers to get a clue of what went wrong.

Error identifier constants

A list of error constants and their explanations.

Error identifierExplanation
INTERNAL_ERRORUnhandled unknown internal error at iDenfy's API side.
BAD_VALUESupplied value is not valid.
MISSING_VALUEExpected a supplied value but got none.
UNAUTHORIZEDMissing API key/secret in HTTP headers or API key/secret not valid.
ENCODING_ERRORFailed to encode/decode object.
JSON_ERRORMalformed JSON body.
TOKEN_NOT_VALIDVerification token is not valid or expired.
PARTNER_CONTRACT_ERRORA partner can not do a requested action because of the signed contract.
METHOD_NOT_ALLOWEDWrong HTTP method.
PERMISSIONS_ERRORInsufficient permissions for the request.
TOO_MANY_REQUESTSRequests per hour limit has been reached. Default value is 10000.
VALIDATION_ERRORRequest is malformed.
important

A common error that results in 400 Bad Request with a message "Partner reached token limit." And identifier "PERMISSIONS_ERROR" when trying to generate a token means that your environment has run out of verification tokens. Please contact our support team in a Dashboard using your account.