Verify document photo
This endpoint allows the matching between the user selfie and the photo on the ID document simultaneously.
The IDCard photo sent in this request is provided at the response of the method Validate Document, so is necessary to store the photo temporarily to send it along with the uploaded photo sample taken at the moment.
Document - Verify document photo
POST
https://api.biometrid.com/api/1.1/document/selfie-compare
Headers
Content-type
string
Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" }
x-biometrid-key
string
Application Client Key
x-biometrid-secret
string
Application Client Secret
Request Body
facemap
string
Required only for specific liveness engine version. Paired with photo
. Ask for further details.
photo
string
Required only for specific liveness engine version. Paired with facemap
. Ask for further details.
photo1
object
Image file containing photo for biometric analysis. File format: jpeg, png or jpg. Max size: 1 MB.
photo2
object
Image file containing photo for biometric analysis. File format: jpeg, png or jpg. Max size: 1 MB.
livenessId
string
Liveness session identifier obtained from successful validation. Required if liveness is active for in Client configuration.
POST
https://api.biometrid.com/api/1.1/document/selfie-compare
Request Body
photo
string
Success 200
Field
Type
Description
status
Boolean
Response status.
data
Object
Response main data.
message
String
Message regarding the selfie compare process.
verified
Boolean
Photos comparison result.
confidence
String
Photos comparison result confidence.
Last updated
Was this helpful?