Face Detection

Endpoint [POST]

https://api.verifik.co/v2/face-recognition/face-validation

This API provides advanced face detection and validation capabilities for selfie verification and liveness testing. Validates that an uploaded image is a proper selfie suitable for liveness testing.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Params

Name
Type
Description

image

string

Base64 encoded image (with or without data URL prefix)

{
    "image": "base64_encoded_string"
}

Request

const axios = require('axios');
let data = JSON.stringify({
  "image": "/9j/4AAQSkZJRgAB...AQEASABIAA",
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.verifik.co/v2/face-recognition/face-validation',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR...dTiT0OLF9rrFmXff899c'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Response

{
    "data": {
        "success": true,
        "message": "Valid selfie detected",
        "faceCount": 1,
        "facePercentage": 31.9,
        "faceBox": {
            "_x": 120.83665157463362,
            "_y": 161.9015470147133,
            "_width": 268.11956652562935,
            "_height": 350.7357820868492
        }
    },
    "signature": {
        "dateTime": "July 17, 2025 1:08 PM",
        "message": "Certified by Verifik.co"
    },
    "id": "CC2AW"
}

Last updated