Verifik
Verifik
Verifik
  • Documentation
  • Accounts
    • Authentication
      • Email Authentication
      • Phone Authentication
      • Renew your token (JWT)
      • Create new token & revoke previous tokens
    • Clients
      • Account information
  • Services
    • SmartCheck
      • App Query example
    • SmartAccess
      • Dashboard
    • Access
      • Email Access Example
      • Phone Access Example
      • Biometric Access Example
    • SmartEnroll
    • Enroll
      • Tutorial
    • Smart Scan
  • Biometrics API's
    • Liveness
      • Liveness Detection
    • Compare
      • Compare & Liveness detection
      • Compare 1:1
    • Search
      • Search 1:N | Live
      • Search 1:N
      • Search 1:N | Crop
      • Face Detect
      • Face Verify
  • Scan Docs API's
    • Scan Studio
      • Documents supported
      • 🇨🇴[Example] Tarjeta de propiedad
    • Scan Prompt
      • Documents supported
      • Scan Prompt templates
  • Resources
    • Projects
      • The Project object
      • Create a project
      • Update a project
      • Retrieve a project
      • List all projects
    • Project Flows
      • The ProjectFlow object
      • Create a project flow
        • Login settings
        • Onboarding settings
        • Security settings
      • Update a project flow
      • Retrieve a project flow
      • List all project flows
    • App Logins
      • The AppLogin object
      • Create an app login
      • Retrieve an app login
      • List all app logins
    • App Registrations
      • The AppRegistration object
      • Create an app registration
      • Sync app registration status
      • Retrieve an app registration
      • List all app registrations
    • Credits
      • The Credit object
      • Retrieve a credit record
      • List all credit records
    • Document Validations
      • The DocumentValidation object
      • Enroll - Create Document Validation
      • Retrieve a document validation
      • List all document validations
      • Delete a document validation
    • Email Validations
      • The Email Validation object
      • Create Email Validation
      • Validate an Email Validation
      • Retrieve an Email Validation
      • List of Email Validations
    • Phone Validations
      • The Phone Validation object
      • Create Phone Validation
      • Validate Phone Validation
      • Retrieve a Phone Validation
      • List of Phone Validations
    • Collections
      • The Collection object
      • Create a Collection
      • Retrieve a Collection
      • List all Collection
    • Persons
      • The Person object
      • Create a Person
      • Create a Person [With Liveness detection]
      • Update a Person
      • Delete a Person
      • Retrieve a Person
      • List all Persons
    • Webhooks
      • The Webhook object
      • Create a Webhook
      • Update a Webhook
      • Delete a Webhook
      • Retrieve a Webhook
      • List all Webhooks
      • Webhook integration
    • Biometric Validations
      • The Biometric Validation Object
      • Create Biometric Validation
      • Validate Biometric Validation
      • Retrieve a Biometric Validation
      • List all Biometric Validations
  • Plans & Pricings
    • Database Screening plans
    • Smart Access Plans
      • Free Plans
      • Active Users
      • Sessions
      • Extra Charges
      • Enterprise Plans
    • SmartEnroll Plans
    • Enroll Plans
    • SMS/WhatsApp Pricing
  • Identity validation
    • 🇦🇷Argentina
    • 🇧🇴Bolivia
    • 🇧🇷Brazil
    • 🇨🇦Canada
      • 🇨🇦Ontario Driver license
      • 🇨🇦Quebec Driver license
      • 🇨🇦British Columbia license
    • 🇨🇱Chile
      • 🇨🇱Chilean taxpayer information
    • 🇨🇴Colombia
      • Colombian Citizen
      • Colombian Citizen with Extra Data
      • Special Stay Permit (PEP)
      • Temporary Protection Permit (PPT)
      • Colombian Foreigner ID (CE)
      • Colombian Politically Exposed Persons
    • 🇨🇷Costa Rica
    • 🇩🇴Dominican Republic
    • 🇪🇨Ecuador
    • 🇸🇻El Salvador
    • 🇬🇹Guatemala
    • 🇭🇳Honduras
    • 🇲🇽Mexican
    • 🇵🇦Panama
    • 🇵🇾Paraguay
    • 🇵🇪Peru
      • 🇵🇪[v3] Peruvian Citizen
      • 🇵🇪[v3] Full Peruvian Citizen
      • 🇵🇪Peruvian Citizen
      • 🇵🇪Peruvian Foreigner Resident
      • 🇵🇪Peruvian Citizen Information with Extra Data
    • 🇪🇸Spain Citizen
    • 🇺🇸United States
      • 🇺🇸SSN Verification (Social Security Number)
      • 🇺🇸Florida Driver License Validation
      • 🇺🇸Kansas Driver's License Verification
    • 🇺🇾Uruguay
    • 🇻🇪Venezuela
      • 🇻🇪Venezuelan Citizen Information
      • 🇻🇪Venezuelan Foreigner citizens
  • Vehicle Validation
    • 🇦🇷Argentina
    • 🇧🇴Bolivia
    • 🇧🇷Brazil
    • 🇨🇱Chile
      • 🇨🇱Vehicle Information
      • 🇨🇱Driver license
    • 🇨🇴Colombia
      • 🇨🇴Vehicle by Code - Fasecolda
      • 🇨🇴SIMIT Resolutions
      • 🇨🇴Complete vehicle with historical records by VIN - RUNT
      • 🇨🇴Information System for Drivers Transporting Dangerous Goods
      • 🇨🇴Vehicle's SOAT and RTM by Plate and Identification document
      • 🇨🇴General query of SIMIT by license plate
      • 🇨🇴Driver's License
      • 🇨🇴Vehicle by plate and identification card only
      • 🇨🇴Vehicle Values by Plate - Fasecolda
      • 🇨🇴Verifik Pico y Placa for Bogotá
      • 🇨🇴Complete vehicle with historical records by plate and identification document - RUNT
      • 🇨🇴SIMIT Agreements
      • 🇨🇴SIMIT Fines
      • 🇨🇴General query of SIMIT by Identification Document
      • 🇨🇴Sinister Verification - Fasecolda
      • 🇨🇴Vehicle Fines Check in Bogotá, Colombia
      • 🇨🇴Taxes in Bogota
      • 🇨🇴Vehicle accidentality in Bogota
    • 🇨🇷Costa Rica
    • 🇪🇨Ecuador
      • 🇪🇨Ecuador Vehicle Fines
      • 🇪🇨Vehicle Information Lookup
    • 🇲🇽Mexico
    • 🇵🇾Paraguay
    • 🇵🇪Peru
      • 🇵🇪Peruvian Vehicle
      • 🇵🇪Peruvian Vehicle Insurance
    • 🇺🇸United States
      • 🇺🇸Vehicle Information
      • 🇺🇸Vehicle Information by VIN
  • Business Validation
    • 🇦🇷Argentina
    • 🇧🇴Bolivia
    • 🇧🇷Brazil
    • 🇨🇦Canada
    • 🇨🇱Chilean
    • 🇨🇴Colombia
      • 🇨🇴Colombian Business Information - RUES
      • 🇨🇴Complete Business Registry - RUES
      • 🇨🇴Colombian Company DIAN Verification
      • 🇨🇴Verify Legal Invoicer in DIAN for Colombian Companies
    • 🇨🇷Costa Rica
    • 🇲🇽Mexico
    • 🇵🇦Panama
    • 🇵🇾Paraguay
    • 🇵🇪Peru
    • 🇪🇸Spain
    • 🇺🇸United States
  • Background Check
    • 🇧🇷Brazil
    • 🇨🇴Colombia
      • 🇨🇴Public Contracts
      • 🇨🇴Colombian Police Record Check
      • 🇨🇴Verify Police Compliance with Corrective Measures
      • 🇨🇴Comptroller Certificate
      • 🇨🇴Disciplinary Records in Colombia (attorney's office)
    • 🌎International
      • 🌎DEA Background Check
      • 🌎Europol Background Check
      • 🌎FBI Background Check
      • 🌎Interpol Background Check
      • 🌎OFAC Background Check
      • 🌎ONU Background Check
  • Military
    • 🇨🇴Colombia
  • Finance
    • 🇨🇴Delinquent debtors
  • Legal
    • 🇨🇴Lawyer Verification
    • 🇨🇴Colombian Legal Processes
    • 🇨🇴Retrieve Details of a Legal Process by Number
    • 🇨🇴Court Case Records Lookup
    • 🇨🇴Certificate of Validity for Legal Professionals
  • Certificates
    • 🇨🇴Registry Certificate
    • 🇨🇴High Altitude Job Eligibility
    • 🇨🇴SENA Certificates
  • Voting
    • 🇨🇴Retrieve Voting Information for Colombian Citizens
  • Health
    • 🇨🇴Colombian RETHUS Verification Data
    • 🇨🇴Verify Colombian Affiliations
  • Verifik LLC
    • Privacy Policy
    • Políticas de Privacidad
    • Términos y Condiciones
    • Terms and Conditions
    • Acuerdo de Niveles de Servicio
    • Service Level Agreement
    • Verifik for Enterprises HUB (Esp)
    • Verifik for Enterprises HUB (Eng)
    • SmartCheck Terms and Conditions of Use
Powered by GitBook
On this page
  • Endpoint
  • Headers
  • Parameters
  • Request
  1. Resources
  2. Persons

Create a Person [With Liveness detection]

Endpoint

https://api.verifik.co/v2/face-recognition/persons/search-live-face

Comprehensive service for the proper creation of persons within a collection, ensuring optimal management of individuals through the following workflow:

  • It first conducts a search in the collection 1:N to ensure that no duplicate person is generated within the same collection.

  • If no match is found stored in the collection, it proceeds to perform a Liveness Detection on the incoming selfie.

  • Once the above steps are completed, the service accurately creates a new person within the collection. Verifik ensures that a new person request with the same face is stored by performing the search (1:N) and additionally performs a liveness test.

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.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Parameters

Parameter
Type
Required
Description

name

String

Yes

Full name of the person

collection_id

String

Yes

images

Array

Yes

An array containing Base64-encoded images of the person. You can send up to 3 images of the same person. Images must be Base64-encoded strings.

notes

String

No

Optional notes or remarks about the person (e.g., employment status, additional details).

date_of_birth

String

No

The person's date of birth in YYYY-MM-DD format.

nationality

String

No

The person's nationality (e.g., "Colombian").

gender

String

No

The person's gender. Accepted values: "M" (Male), "F" (Female).

min_score

Float

No

The minimum score for face matching (Search 1:N), ranging from 0 to 1. A higher value requires a stronger match to avoid duplicates. Default is usually around 0.8.

search_mode

String

No

Defines the search speed. Accepted values: "FAST" (faster but potentially less accurate), "ACCURATE" (slower but more precise). we set as default "FAST"

liveness_min_score

Float

No

The minimum liveness score, ranging from 0 to 1. A value of 0.65 is typical, where values closer to 1 increase strictness in confirming liveness.

Request

const axios = require('axios');
let data = JSON.stringify({
  "name": "Juan Miguel Trevino Morales",
  "images": [
    "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgYHB...dz/9k="
  ],
  "gender": "M",
  "date_of_birth": "1992-03-02",
  "nationality": "Mexican",
  "notes": "Created via API",
  "collection_id": "b26cb8c3-0778-4ec5-8bc4-a7cac66b5291",
  "liveness_min_score": 0.7,
  "min_score": 0.67,
  "search_mode": "FAST"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.verifik.co/v2/face-recognition/persons/search-live-face',
  headers: { 
    'Authorization': 'Bearer eyJhbGciOiJIUzkpXVCJ9.eyJjbGllbnRJZC...4Cw', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
<?php
$client = new Client();
$headers = [
  'Authorization' => 'Bearer eyJhbGc5cCIVCJ9.eyJjbGllbn...lt4Cw',
  'Content-Type' => 'application/json'
];
$body = '{
  "name": "Juan Miguel Trevino Morales",
  "images": [
    "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgY.../8AJWOKZadz/9k="
  ],
  "gender": "M",
  "date_of_birth": "1999-09-22",
  "nationality": "Mexican",
  "notes": "Created via API",
  "collection_id": "b26cb8c3-0778-4ec5-8bc4-a7cac66b5291",
  "liveness_min_score": 0.7,
  "min_score": 0.67,
  "search_mode": "FAST"
}';
$request = new Request('POST', 'https://api.verifik.co/v2/face-recognition/persons/search-live-face', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
let parameters = "{\n    \"name\": \"Juan Miguel Trevino Morales\",\n    \"images\": [\n        \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgYHBF2oQrUJ+xwcsQOnBYrMsEQf1GWBzURqVSSgM8VC0ZZTb+oBk4xHcFhW0gV8OM8q1iW3yQZaR5/vDCVmCGyprhuqjUqA1C4S4bzxWbGL6lwfXCxTAZTwcKXqji/hmZ4uLKnjjvkWWcXhn5wQ1PPFY+FJx7jfeJg4vEI8PKO43jlcQu8xvHBzZXGJZ1LgmOmWwZRznRxUFlTXmamTuNSu1zqXL4MnNw31wQ1xWOfUbeDr42VgYkCE08e+CDUPgVHhjqZ4/YZIDUwi/6jN8DrnKTFTHxIkrM7jwrXHctwQlzqO4wNQjx1x1B03Lbl55uVxdwOLYRpodQ3L4vgxDO5l4yMZcNzcYS+M0S++Ca64uEdvjm8z1NyoVDMDMrNz6hCfsoHdQY1ouWXln1csYe5ZgE1KJfDcYXcw4zfw6413wSp9y5c3EYQcwiVK4KSZ646lMwR1cU0ykeDgNzv3NuHjrjMqXUpfgYm2OIEFMfBhMwq/U3PGZUqpR55KeNzriuenEJXm+MkohEmo47Iw1x7m+OjFzCy2j1Lmb1LxUt1zULzw8ErtY71Kw83MSiGeUJgj1Ll9VC+iOJc/8AJWOKZadz/9k=\"\n    ],\n\t\"gender\": \"M\",\n\t\"date_of_birth\": \"1992-03-02\",\n\t\"nationality\": \"Mexican\",\n\t\"notes\": \"Created via API\",\n    \"collection_id\": \"b26cb8c3-0778-4ec5-8bc4-a7cac66b5291\",\n    \"liveness_min_score\": 0.7,\n    \"min_score\": 0.67,\n    \"search_mode\": \"FAST\"\n}"
let postData = parameters.data(using: .utf8)

var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/face-recognition/persons/search-live-face")!,timeoutInterval: Double.infinity)
request.addValue("Bearer eyJhbGciIkpXVCJ9.eyJjbGllbnRjI4O...V0w1splt4Cw", forHTTPHeaderField: "Authorization")
request.addValue("application/json", forHTTPHeaderField: "Content-Type")

request.httpMethod = "POST"
request.httpBody = postData

let task = URLSession.shared.dataTask(with: request) { data, response, error in 
  guard let data = data else {
    print(String(describing: error))
    return
  }
  print(String(data: data, encoding: .utf8)!)
}

task.resume()

PreviousCreate a PersonNextUpdate a Person

Last updated 4 months ago

The unique identifier for the in which the person will be added.

collection