Skip to main content

Face Detection

Face Detection is POST /v2/face-recognition/face-validation, an alias of the detect engine. image is required. If you omit them, this route sets min_score to 0.5 and search_mode to FAST. The live payload is face_count, faces (each with score and bbox), imageDimensions, and engine.

What the call returns​

  • face_count
  • faces[].score and faces[].bbox
  • imageDimensions and engine

Use cases​

  • Count faces before liveness.
  • Read the box of the primary face.
  • Rely on the default score and mode when you only have an image.

API Reference​

Endpoint​

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

Read face_count first. Each item in faces has score and bbox. imageDimensions is the decoded width and height. engine names the detector.

Headers​

NameValueDescription
Content-Typeapplication/jsonRequest payload format
Acceptapplication/jsonResponse format
AuthorizationBearer <your_token>Client JWT

Parameters​

NameTypeRequiredExampleDescription
imagestringYesdata:image/jpeg;base64,AAAAFace image as base64 or a data URI. Required.
min_scorenumberNo0.5Optional. This route defaults it to 0.5.
search_modestringNoFASTOptional. This route defaults it to FAST. ACCURATE is the other value.

Request​

import axios from "axios";

const options = {
method: "POST",
url: "https://api.verifik.co/v2/face-recognition/face-validation",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Bearer <your_token>",
},
data: {
"image": "data:image/jpeg;base64,AAAA"
},
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error.response ? error.response.data : error.message);
}

Response​

{
"data": {
"face_count": 1,
"faces": [
{
"score": 0.97,
"bbox": [
80,
60,
280,
320
]
}
],
"imageDimensions": {
"width": 640,
"height": 480
},
"engine": "insightface"
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}

Notes​

  • image is the only required field.
  • Omitted min_score becomes 0.5 and omitted search_mode becomes FAST.
  • The response uses bbox, not a separate landmark object.
  • Send a Bearer JWT in the Authorization header.
  • The JSON sample illustrates the fields. A live call returns the record for the values you send.
  • Do not send a cache-bypass flag. This page documents only the client parameters.

Sandbox​

ScenarioParametersResult
Record on fileimage only200 with face_count, faces, imageDimensions, and engine.
Missing required valueOmit image409 MissingParameter.
Unknown valuemin_score: 0.8, search_mode: "ACCURATE"200 using the score and mode you sent.

401 when the bearer token is missing or rejected.