To perform a person's face verification operation, you must use the verify method. The request body consists of a Person object, which is composed of a CustomID string, that contains a unique value that will be used to identify the user, and a Fingers array, whose items are the images of the person’s face. However, to perform this procedure, only the face biometry will be necessary.
An example of the request body can be seen below:
For the content in the header, insert the content type and the subscription key, as seen in the template below, where the value of <API-KEY> must be replaced by your BioPass ID subscription key:
Lastly, in the request, the specification that it’s a POST method, the URL https://api.biopassid.com/multibiometrics/verify, the header, and the body, all shown above, must be passed as the parameters. An example of how a code that makes this request would look like can be seen below, written in Python, but can be checked in several others programming languages in our documentation:
The request response will be a JSON message with a Person object containing the fields:
- CustomID: String that identifies the person, passed in the request;
- Match: Boolean value that shows the operation result, that is, if the biometrics informed corresponds to that of the indicated person;
- MatchDetails: An object that contains the info about the biometrics comparison. It is made of two fields:
- FaceMatched: Boolean value that informs whether the face matched or not. Its value is set as false by default if there is no face biometrics being received;
- NonMatchedFingers: A string array that informs which fingers did not conformed to the indicated biometrics. By default, fingers that were not informed are set in this list.
Therefore, the format of the JSON message can be seen below:
Note that even though no fingerprint biometrics were sent, the system returned as true the value for the face match and, thus, the biometric verification, and returned as false the match for each fingerprint, since none was entered.
In case the message with the code 200 (OK) is returned, this means your request was completed successfully and you can proceed to the next ones.