Skip to main content

3D Liveness Detection

3D Liveness Detection in FACIA serves as a cutting-edge technology within our biometric authentication systems. Its primary function is to verify that the facial data captured during authentication belongs to a live individual, thereby strengthening security measures and thwarting potential spoofing attempts. This feature plays a vital role in our facial recognition systems, ensuring heightened security and the prevention of unauthorized access.

Generate Liveness URL

To generate the Liveness verification, send a request to the following endpoint with the mentioned sample payload. The liveness URL can be obtained from the API at:

Endpoint

POSThttps://app.facia.ai/backend/api/transaction/generate-liveness-url/

Authorization:

Token Type: Bearer
Description:

This API utilizes Access token or Client-Secret key in header for authentication.

You can use your client_id and client_secret key when using the "/get-access-token" endpoint to obtain a Bearer token for authorization while connecting to this API. For additional details on Authorization, click Here

Run in Postman

Request Body Samples:

//POST /backend/api/transaction/generate-liveness-url  HTTP/1.1
//Host: app.facia.ai
//Content-Type: application/json
//Authorization: Bearer <access-token-here>

{
"redirect_url": "https://www.example.com",
"callback_url": "https://www.example.exc.com",
"customer_id": "10",
"customer_email": "[email protected]",
"ttl": 60,
}

Request Parameter

ParametersDescription
redirect_url Required: No
Type: String
Example: redirect_url = https://www.example.com/?64db8940a619c1692109120
Indicate the URL to be used for post-transaction redirection.
callback_url Required: No
Type: String
Example: callback_url=https://www.example.exc.com/
Multiple server-to-server calls are initiated to communicate updates on verification status to Facia’s clients. This functionality ensures that clients can maintain real-time updates on their end, even if the end-user's session is interrupted during the process.
customer_id Required: No
Type: String Example: customer_id=10
The id of customer for whom link is being generated.
customer_email Required: No
Type: String
Example: [email protected]
The email of customer for whom link is being generated.
ttl Required: No
Type: Integer
Example: ttl=60
Minimum: 1 minute
Maximum: 43200 minutes (30 days)
Default: 60 minutes
The 'ttl' parameter specifies the time-to-live (ttl) in minutes, indicating the duration until the link expires.

Response Sample


{
"status": true,
"message": "Success",
"result": {
"data": {
"liveness_url": "https://app.facia.ai/?64db8940a619c1692109120",
"reference_id": "W4437KIWN0KDM13",
"callback_url": "https://www.example.exc.com",
"customer_id": "10",
"customer_email": "[email protected]",
"redirect_url": "https://www.example.com"
}
}
}


Response Parameter

ParametersDescription
liveness_urlThe link to perform liveness.
Example: liveness_url=https://app.facia.ai/?64db8940a619c1692109120
reference_idThe unique identified associated with the created transaction.
callback_urlThe link where the transaction response will be sent.
Example: callback_url=https://www.example.exc.com/
customer_idContains the unique ID defined for the end user.
Example: customer_id=10
customer_emailThis key includes the email that belongs to the end user.
redirect_urlIndicate the URL to be used for post-transaction redirection.

Get Liveness Url Status

To check the status of the Liveness generated URL, send a request to the following API endpoint using GET method.

Endpoint

GEThttps://app.facia.ai/backend/api/transaction/liveness-url-status/<liveness_reference_id>

Authorization:

Token Type: Bearer
Description:

This API utilizes Access token or Client-Secret key in header for authentication.

You can use your client_id and client_secret key when using the "/get-access-token" endpoint to obtain a Bearer token for authorization while connecting to this API. For additional details on Authorization, click Here

Run in Postman

Request Body Samples:

//GET /backend/api/transaction/liveness-url-status/XJZKDN0J3WULFUZ  HTTP/1.1
//Host: app.facia.ai
//client-secret: <your client_secret key>

Response Sample


{
"status": true,
"message": "Success",
"result": {
"data": {
"reference_id": "W4437KIWN0KDM13",
"expired": "true",
"customer_id": "10",
"customer_email": "[email protected]",
"transactions": [
{
"reference_id": "YVJFBNYYKXUMLKU",
"status": "DECLINED",
"image_proof": "https://portal.facia.ai/backend/api/merchant/get-image-stream/?photo_id=64dcf9639c061a573003aeb6&client_id=c20ad4d76f",
"video_proof": null
},
{
"reference_id": "MCC49WVARIXUOQ8",
"status": "DECLINED",
"image_proof": "https://portal.facia.ai/backend/api/merchant/get-image-stream/?photo_id=64dcf96a9c061a573003aeb9&client_id=c20ad4d76f",
"video_proof": null
},
{
"reference_id": "6JSXYUGEJ9DONL6",
"status": "ACCEPTED",
"image_proof": "https://portal.facia.ai/backend/api/merchant/get-image-stream/?photo_id=64dcf9739c061a573003aebc&client_id=c20ad4d76f",
"video_proof": null
}
]
}
}
}


Response Parameter

ParametersDescription
reference_id Type: string
Example: reference_id = W4437KIWN0KDM13
expired Type: boolean
Example: expired = true
customer_id Type: string
Example: customer_id=10
customer_email Type: string
Example: customer_email = [email protected]
transactions Type: array
List of transactions.