ID Liveness API
Verify the authenticity of ID documents by analyzing images for tampering or forgery
Request notes
- Set
idImageto the bytes of the image file encoded as a base64 string. Send only the encoded string, without a prefix such asdata:image/png;base64,. sr,pc, andpsinpipelinesare all required and must be boolean values.- If you include
callbackUrl, the request is processed asynchronously and the result is delivered to that URL. To receive the result directly in the response, omitcallbackUrl. - When testing in the playground, paste the same base64 string into the
idImagefield.
Response Attributes
screenReplay- liveness_scorepaperPrinted- liveness_scorereplacePortraits- liveness_score
1001- Workspace is unavailable1003- Fail to process data1005- idImage is required1007- pipelines is required1008- invalid pipelines format1009- Fail to analyze document1010- callbackUrl is required
Authorizations
Body
The ID document image to analyze for liveness detection, as a base64-encoded string. Encode the bytes of the image file and send only the encoded string, without a data URI prefix such as data:image/png;base64,. The image should contain a clear view of the ID document.
Forgery detection options object
Use the upcoming version of the liveness engine
Optional callback URL where the liveness detection results will be sent upon completion. If provided, the process works asynchronously.
"https://your-domain.com/callback"
