KYC Direct processing
- API key
- Direct Processing
enabled
(done by iDenfy's staff)
- This implementation does not support 3D liveness detection or short photo sequences. If these are required, use a different integration type.
- Images required for a specific document should be provided, usually at least
FRONT
andFACE
. - The maximum request size is
20 MB
Sending request
Authorization: API key pair
Method: POST
Endpoint: https://ivs.idenfy.com/api/v2/process
The request must contain JSON with these parameters:
authToken
| Type: String
Verification token
null
country
| Type: String
Country code in 3166-1 alpha-2
format
Any country in alpha-2
code
documentType
| Type: String
Document type
Possible values:
ID_CARD
PASSPORT
RESIDENCE_PERMIT
DRIVER_LICENSE
OTHER
images
| Type: Object
Images for verification (Base64
format)
See below in Image object parameters
FRONT
| Type: String
Base64
encoded image of document front
- Max size of
6MB
BACK
| Type: String
Base64
encoded image of document back
- Max size of
6MB
FACE
| Type: String
Base64
encoded image of persons face
- Max size of
6MB
UTILITY_BILL
| Type: String
Base64
encoded image of an utility bill or any other custom additional step that was set in advance
- Max size of
6MB
- Invalid JSON or API key/secret → standard iDenfy error response. See iDenfy error messages.
- 200 OK with error → document not detected in the photo.
In such cases try one of these:
Disable
Validate photos in environment settings (done by iDenfy's staff)- Add
skipAnalysis: true
in the request - Use a clearer photo with visible document/selfie
Request example
{
"authToken": "3FA5TFPA2ZE3LMPGGS1EGOJNJE",
"country": "LT",
"documentType": "ID_CARD",
"images": {
"FRONT": "/9j/4AAQSkZJRgABAQAAAQABAAD/4...",
"BACK": "/9j/4AAQSkZJRgABAQAAAQABAAD/4...",
"FACE": "/9j/4AAQSkZJRgABAQAAAQABAAD/4..."
}
}
Response example
For successful API calls, which start the processing, there will be no message, just a response with a positive 200 status.
Response example - failed
Failed API calls will return a message identifying the problem.
{
"message": "No image provided for step 'BACK'",
"identifier": "MISSING_VALUE",
"documentation": "https://documentation.idenfy.com",
"severity": "NOT_SEVERE"
}