This endpoint is used for storing front side of id for further processing. Image quality check is performed during that call.
Number of retries is not limited.
Once process-id is finished, this endpoint cannot be called for retries.
Note: Front side of id should be uploaded before back-side
Image requirements: the smallest side of the image must be at least 200 px.
A smaller image can pass this capture step, but process-id rejects it with error status 4085 ("ID image is too small.").
Images larger than 2048 px on the longest side are scaled down automatically.
Query parameters
onlyFrontbooleanDefaults to false
Flag stating if document is one-sided (like Passport)
idTypestring
Type of the document being uploaded. Set to `DigitalId` when uploading a digital ID (for example a Brazilian CNH or CIN PDF downloaded from the gov.br apps), together with `onlyFront=true`. With `DigitalId`: - the request may contain a PDF, as `base64Image` or as an `imageUrl` ending in `.pdf`; only the first page is processed - the upload is treated as an uploaded file, not a camera capture - the document must be classified as a supported digital ID, otherwise the response contains failReason `DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED`
enumIDPassportDigitalIdUnknown
extractIdFacebooleanDefaults to true
When false, skips biometric face extraction and template creation from the front ID. Default true.
Headers
api-versionstringrequiredDefaults to 1.0
Request body
application/json
base64Imagestring
Image in base64 format. One of base64Image or imageUrl is required
imageUrlstring
URL of the image. One of base64Image or imageUrl is required
Responses
Response body (application/json)
correctSharpnessboolean
It's true if the sharpness of the ID meets the requirements.
correctGlareboolean
It's true if the glare of the ID meets the requirements.
horizontalResolutioninteger (int32)
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.
shadowConfidencenumber (float)0 to 1
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.
classificationboolean
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.
readabilityboolean
If true, server can properly read ID. If false server failed to read some key places of the ID.
Flag that signals if image was redacted as part of the ID capture.
idFaceExtractionSkippedboolean
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).
Checked only if configured in the session flow.
maxinteger (int32)
Maximum number of attempts to capture a photo.
remaininginteger (int32)
Number of remaining attempts to capture a photo.
idQualityAttemptApprovedboolean
ID quality check result based on ML readability estimation. True if perFieldReadability >= 0.9, false otherwise.
isDocumentExpiredboolean
Flag indicating if the document side is expired.
attemptIdstring
Created attempt id.
NFC chip capability of the classified document, so the SDK can skip an NFC step that cannot succeed. Present only when NFC smart gating is enabled for the organization.
capabilitystring
NO_CHIP or ISSUER_NOT_TRUSTED: skip the NFC step. SUPPORTED or UNKNOWN: run it.
enumSUPPORTEDNO_CHIPISSUER_NOT_TRUSTEDUNKNOWN
chipLocationstring
Where the chip sits: FRONT, BACK, DATA_PAGE, INLAY or UNKNOWN. Present only when the NFC step runs.