Skip to main content

Face Authentication

Description

Objective

This Face Authentication module verifies if the selfie provided in the request matches the image corresponding to a unique identifier(UID) in database.

InputOutput
The selfie of the user and a unique transaction ID.The face match result of the user's selfie matched against all the existing records in the database.

Inputs

The following table provides the complete information on all the input parameters for the module.

ParameterMandatory or OptionalType Description
transactionIdMandatorystringThe unique identifier for the user's application.
uidType Mandatory stringThe type of the unique identifier. It can be the transaction ID or any other unique identifier for the enrolment.
Note
It is commonly configured as "transaction_id".
uid Mandatory stringThe unique identifier for the record in your database used during enrolment.
Note
It is commonly configured as the transaction ID for the record.
selfieMandatoryfileThis is the selfie image of the user. The maximum image size is 6 MB.

Success Response Sample

The following is a sample response for a matching record in the database.

{
"status": "success",
"statusCode": 200,
"metaData": {
"requestId": "1679918521052-b71a052c-d686-4162-827e-04298699573e",
"transactionId": "Kala-Orion-Test-2"
},
"result": {
"data": {
"matchScore": 99,
"match": "yes"
},
"summary": {
"action": "pass",
"details": []
}
}
}

Error Response Samples

The following are the sample error responses.

The following is a sample response for a request missing the transactionId.

{
"error": "\"transactionId\" is required",
"statusCode": 400,
"status": "failure",
"requestId": "d00a7e14-dbc7-4489-aa5a-cdd56a544578",
"transactionId": null
}

Failure and Error Response Details

A failure or error response from the module contains a failure status with a relavant status code and error message. The following table lists all error responses.

Status CodeError MessageError Description
400""transactionId" is requiredThe request does not contain the transaction identification number.
401Missing/Invalid credentialsThe request either does not contain the mandatory credentials or contains invalid credentials.
404Lendernode not foundThe API failed to get the lender node.
429Requests rate limit exceededThe number of transactions per minute has crossed the limit set for your credentials.
500Internal Server ErrorThere is an error with HyperVerge's server. Kindly contact the HyperVerge team for resolution.
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: