Face Match API (💲)

Allows users to log in using facial recognition technology. It matches the selfie captured by the user during login with the facial image on file for that user, providing an extra layer of se

This API is used to verify a user who has already undergone KYC verification or Multiple KYC verification. It verifies the user's identity by comparing their face with the previously submitted documents, eliminating the need for the user to undergo KYC onboarding again. If the user is already verified, the API will prevent them from undergoing the verification process again.

Method: POST

Authorization: Bearer Token

Parameter:

selfie_image (Image File) (*Mandatory)

Face Match/ Login Stels

  1. Set the Authorization type to "Bearer Token" in the request header. You will need to generate a bearer token from /getToken API.

  2. In the body of the request, including the user's selfie image file as a parameter named "selfie_image". This parameter is mandatory.

  3. Send the request to the API.

  4. The API will perform a face match verification to check if the user's selfie matches the face on file for their account.

  5. If the face match is successful, the API will log the user into their account.

  6. If the face match fails, the API will not log the user in and will return an error message.

POST https://sdk.faceki.com/facelink/api/face-check

Headers

Request Body

```json
{
    "responseCode": 0,
    "data": {
        "face_verified": true,
        "all_face_ids": [
            "2f1ebdb7-e6d1-448e-9b2c-3ddfe97672d7"
        ],
        "kyc_records": [
            {
                "_id": "644b7cff16cc73de26ff9b9c",
                "kycResponse": {
                    "result": {
                        "documentNumber": "930813316",
                        "firstName": "Name",
                        "middleName": "Middle name",
                        "lastName": "Last name",
                        "fullName": "FIRST MIDDLE LAST NAME",
                        "fullName_local": "الاسم بالعربي",
                        "sex": "F",
                        "age": 29,
                        "dob": "1993/08/29",
                        "dob_day": 29,
                        "dob_month": 8,
                        "dob_year": 1993,
                        "expiry": "2024/08/18",
                        "expiry_day": 18,
                        "expiry_month": 8,
                        "expiry_year": 2024,
                        "daysToExpiry": 479,
                        "documentType": "I",
                        "documentSide": "DUAL",
                        "issuerOrg_full": "Bahrain",
                        "issuerOrg_iso2": "BH",
                        "issuerOrg_iso3": "BHR",
                        "nationality_full": "Bahrain",
                        "nationality_iso2": "BH",
                        "nationality_iso3": "BHR",
                        "internalId": "MRZ"
                    },
                    "confidence": {
                        "documentNumber": 0.994,
                        "firstName": 1,
                        "middleName": 1,
                        "lastName": 1,
                        "fullName": 1,
                        "fullName_local": 0.962,
                        "sex": 1,
                        "age": 1,
                        "dob": 1,
                        "dob_day": 1,
                        "dob_month": 1,
                        "dob_year": 1,
                        "expiry": 1,
                        "expiry_day": 1,
                        "expiry_month": 1,
                        "expiry_year": 1,
                        "daysToExpiry": 1,
                        "documentType": 1,
                        "documentSide": 1,
                        "issuerOrg_full": 1,
                        "issuerOrg_iso2": 1,
                        "issuerOrg_iso3": 1,
                        "nationality_full": 1,
                        "nationality_iso2": 1,
                        "nationality_iso3": 1,
                        "internalId": 1
                    },
                    "face": {
                        "isIdentical": true,
                        "confidence": "0.786"
                    },
                    "verification": {
                        "passed": true,
                        "result": {
                            "face": true,
                            "notexpired": true
                        }
                    },
                    "output": [],
                    "outputface": null,
                    "authentication": {
                        "score": 0.7,
                        "breakdown": {
                            "data_visibility": {
                                "passed": true
                            },
                            "image_quality": {
                                "passed": false,
                                "code": 112,
                                "reason": "Document image too small",
                                "severity": "low"
                            },
                            "feature_referencing": {
                                "passed": true
                            },
                            "exif_check": {
                                "passed": true
                            },
                            "publicity_check": {
                                "passed": true
                            },
                            "text_analysis": {
                                "passed": true
                            },
                            "biometric_analysis": {
                                "passed": true
                            },
                            "security_feature_check": {
                                "passed": true
                            },
                            "recapture_check": {
                                "passed": true
                            }
                        },
                        "warning": [
                            "Document image too small"
                        ]
                    },
                    "matchrate": 1,
                    "executionTime": 8.750682830810547,
                    "responseID": "581de82ea2ee0ed36b907113ea4dff15",
                    "quota": 2537,
                    "credit": 0,
                    "aml": [],
                    "vaultid": "vPpYZxjrDTSnC8MmDeFPNzvLvFghaAyy"
                },
                "livenessResponse": {
                    "success": true,
                    "transactionId": "5ab497ca82f54e93b311445740472fcd",
                    "profileId": "b0ca5a9f3c174591941ed41616a08472",
                    "reviewScore": 0,
                    "rejectScore": 0,
                    "decision": "accept",
                    "quota": 2538,
                    "credit": 0,
                    "executionTime": 0.653205889
                },
                "fullName": "First middle last name",
                "referenceId": "581de82ea2ee0ed36b907113ea4dff15",
                "documentId": "930813316",
                "DOB": "1993/08/29",
                "localName": "الاسم بالعربي",
                "country": "Bahrain",
                "countryCode": "BH",
                "countryCodeISO3": "BHR",
                "idFrontImage": "imagelink",
                "idBackImage": "imagelink",
                "status": "ACCEPTED",
                "deleteStatus": "ACTIVE",
                "companyId": "d2504fcc-a1bd-4f4c-9874-dec3706123b4",
                "selfieImage": "imagelink",
                "documentCropFaceImageUrl": "imagelink",
                "faceID": "2f1ebdb7-e6d1-448e-9b2c-3ddfe97672d7",
                "imageID": "ff56ce6a-0326-3eaa-92c4-345d4a80a2db",
                "difcCode": "",
                "link": "client",
                "deviceDetails": {
                    "ipAddress": "54.86.50.139",
                    "browserName": "Postman Desktop",
                    "osName": ""
                },
                "modifiedBy": "",
                "createdAt": "2023-04-28T07:59:59.799Z",
                "updatedAt": "2023-04-28T07:59:59.799Z",
                "__v": 0
            }
        ]
    }
}
```

Last updated