Skip to main content

Face Enrollment

In FACIA, face enrollment goes beyond a mere process – it's a personalized journey of capturing and preserving distinctive facial features to craft a unique biometric template. This template serves as the key to seamless identity verification through our advanced facial recognition algorithms, providing a secure and user-friendly authentication method.

Create Face Enrollment Transaction

This endpoint enables users to enroll one or more faces using the POST method:

Endpoint

POSThttps://app.facia.ai/backend/api/transaction/enroll-face

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/enroll-face  HTTP/1.1
//HOST : https://app.facia.ai/
//Content-Type: application/json
//Authorization: Bearer <access-token-here>

{
"file_list": [
"file",
"file"
],
"client_reference": "QWERTY12345",
"allow_override": 0
}

Request Parameter

ParametersDescription
file_list[0]
Required: Yes
Example: file_list[0]=file
file_list is of type array.
file_list[1] Required: No
Example: file_list[1]=file
file_list is of type array.
client_reference Required: No
Type: string
Minimum: 5 characters
Maximum: 255 characters
Example: client_reference="QWERTY12345"
Required if allow_override field set to 1.
allow_override Required: No
Type: boolean
Default value: 0
Accepted values: 0,1
The client reference is mandatory if the value of the override key is set as 1. The override key allow the system to replace the latest previous image with the new one against the specified reference number of the client’s reference.

Response Sample


{
"status": true,
"message": "Success",
"result": {
"data": {
"client_reference": "QWERTY12345"
"reference_id": [
"GTVFX9YABAOTZAQ",
"9NVFX9YABAOTAVE"
]
}
}
}


Response Parameter

ParametersDescription
client_reference Type: string
Example: client_reference:QWERTY12345
Contains the unique ID defined for the end user.
reference_id Type: array
Example: reference_id:["GTVFX9YABAOTZAQ","9NVFX9YABAOTAVE"]
These are the references of provided proofs that were to be enrolled.

Get Enrolled Faces

This endpoint facilitates the retrieval of all enrolled faces with an option for pagination using the POST method:

Endpoint

POSThttps://app.facia.ai/backend/api/transaction/enrolled-faces

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/enrolled-faces  HTTP/1.1
//Host: https://app.facia.ai/
//Content-Type: application/json
//client-secret: <your client_secret key>

{
"page": 1,
"pagination": 10
}

Request Parameter

ParametersDescription
pagination Type: string
Example: pagination=10

Response Sample


{
"status": true,
"message": "Success",
"result": {
"data": {
"current_page": 1,
"data": [
{
"reference_id": "123456789",
"client_reference": "QWERTY12345",
"created_at": "2024-01-24T07:13:02.774000Z",
"url": "https://app.facia.ai/backend/api/image-url/65b0b87ef8f644072d0a4124?expires=1706082328&signature=363262c02122e678fb21b3366eb1f7f0221cfc3cb045805f110a6e35df9d0was"
}
],
"first_page_url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=1",
"from": 1,
"last_page": 453,
"last_page_url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=453",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "...",
"active": false
},
{
"url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=452",
"label": "452",
"active": false
},
{
"url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=453",
"label": "453",
"active": false
},
{
"url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=2",
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": "https://app.facia.ai/backend/api/transaction/enrolled-faces?page=2",
"path": "https://app.facia.ai/backend/api/transaction/enrolled-faces",
"pagination": 1,
"prev_page_url": null,
"to": 1,
"total": 453
}
}
}


Response Parameter

ParametersDescription
data Type: array
This includes the enrolled images.
reference_id Type: string
Example: reference_id=123456789
client_reference Type: string
Example: client_reference=QWERTY123456789
Contains the unique ID defined for the end user.
url Type: string
URL of the proof with the expiry of 15 minutes.