Comprehensive service for the proper creation of persons within a collection, ensuring optimal management of individuals through the following workflow:
NOTE: The "images" parameter is an array in which up to 3 images of the same person can be sent. If they are not of the same person, the system will not create the user correctly.
Verifik provides a guide on how to create and manage Persons. We invite you to read it: Collection and Persons Guide.
import axios from 'axios';
const options = {
method: 'POST',
url: '<https://api.verifik.co/v2/face-recognition/persons/search-live-face>',
params: {
},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
},
data: {
name: 'Mateo Verifik',
notes: 'Verifik employee',
gender: 'M',
images: ['Base 64 Images'],
min_score: 0.7,
nationality: 'Colombian',
search_mode: 'FAST',
collection_id: 'dac2c81b-12bv-4f19-a6b0-d1a72d55b64b',
date_of_birth: '1995-05-07',
liveness_min_score: 0.5
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
{
"data": {
"__v": 0,
"_id": "65807837049c624ea360c092",
"name": "Mateo Verifik",
"notes": "Verifik employee",
"client": "64404b1f9856cc8cebd762e7",
"gender": "M",
"deleted": false,
"createdAt": "2024-01-10T21:55:03.645Z",
"updatedAt": "2024-01-10T21:55:03.645Z",
"thumbnails": [
{
"id": "cfe0e19a-cb26-4e55-aa28-44761324f66b",
"thumbnail": "Base 64 Image"
}
],
"collections": [
"0dc5245b-cee53-4dce-aba8-9174c12fdfb2"
],
"nationality": "Colombian",
"date_of_birth": "1995-05-07",
"documentValidations": []
}
}