Face Match (Image & Transaction ID)


Instead of sending two images, you can provide one face image and the Transaction ID of a valid Data Extraction service transaction, so we can compare the face from this transaction's document with the face image provided. The transaction ID can be found in the data extraction API response.

You can use the Face Match service by providing two face images to be compared. The result will be "True" if similar or "False" if not.

Face Match (Image & Transaction ID)

POST https://valifystage.com/api/v1/face/match/

Headers

Name
Type
Description

Content-Type

string

application/json

Authentication

string

Bearer <access-token>

Request Body

Name
Type
Description

first_img

string

A base64-encoded face image.

transaction_id

string

An ID of a successful Data Extraction transaction

bundle_key

string

A bundle key provided to you by Valify.

lang

string

The preferred language for the error messages.

{
    'result': {
        'is_similar': '<bool>', 
         'confidence': '<float>'
     }, 
     'transaction_id': '<str>', 
     'trials_remaining': '<int>'
 }

Integration

  1. Download the JSON file.

  1. Open Postman and click on Import.

  1. Drop the JSON file.

  1. Click on "Face Match" then click on "Authorization" and replace the <access token> field with your access token and then click on "Body".

  1. Click on "Face Match" then "Body" and fill in the required fields then click on "Send".

Please note that the front and back images should be converted to base 64 format. This can be done via an online tool; https://base64.guru/converter/encode/image/jpg

Last updated