Add front side of Second ID
This endpoint is used for storing front side of second id for further processing
Query parameters
Flag stating if document is one-sided (like Passport). Default value is false, in case it is not sent.
Headers
Request body
Image in base64 format. One of base64Image or imageUrl is required
URL of the image. One of base64Image or imageUrl is required
Example request
{
"base64Image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEB...",
"imageUrl": "http://..."
}Response
OK
It's true if the sharpness of the ID meets the requirements.
It's true if the glare of the ID meets the requirements.
Value is based on the resolution of the cropped photo. Low value means after performing the crop we have a bad quality of image. We recommend to retry capture if value is below 155.
Value 0 means it is no shadow on the image and image quality is good, while value 1 represents bad quality of image with a lot of shadow. We recommend to retry capture if value is 1.
If true, server classified image as a front side of an id. If false, server failed to classify image as valid front side of an id or passport and other parameters can be ignored.
If true, server can properly read ID. If false server failed to read some key places of the ID.
Issue year of the ID.
Description of the ID. Could contain country code, state, type of ID, subtype of ID.
Only for Mexican IDs. Flag stating if curp was properly read.
Session Status
Valid ISO alpha-2 or alpha-3 code of the ID issuing country.
Issuing state of the ID.
Classification fail reason
Flag that signals if back id capture should be skipped or not.
Flag that signals if front id capture must be executed after back.
Render mandatory consent page based on this parameter value.
Regulation type for the mandatory consent (only if showMandatoryConsent set to true).
Flag that signals if front side glare should be ignored.
Flag that signals if back side glare should be ignored.
Flag that signals if document is on the edge on the full frame image.
List of accepted documents for that particular country in case of ID_TYPE_UNACCEPTABLE failReason.
Flag that signals if image was redacted as part of the ID capture.
True when biometric face extraction from the front ID was skipped because the client passed extractIdFace=false. While this flag is true, face-match flows that require an ID-side template cannot run; the flag is cleared on a subsequent add/front-id call where extractIdFace is true (or omitted).
ID quality check result based on ML readability estimation. True if perFieldReadability >= 0.38, false otherwise. Only available for Mexican documents when feature is enabled.
Flag indicating if the document side is expired.