Face Match (Two Images)


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 (Two Images)

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.

second_img

string

A base64-encoded face image.

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