API reference, Id capture

Add front side of ID

POSThttps://demo-api.incodesmile.com/omni/add/front-id/v2

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)

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