Skip to main content

Verify Face (1:1 vs enrolled person)

Endpoint

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

Verifies that one or more probe face images match a specific enrolled person identified by id (MongoDB person _id). Returns the enrolled profile and a similarity score when the match meets min_score. Use optional collection_id to scope the check.

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params

NameTypeRequiredDescription
idstringYesMongoDB _id of the enrolled person to verify against.
imagesstring[]YesBase64 face images (raw base64; same subject as the enrolled person).
min_scorenumberYesMatch threshold between 0.5 and 1.
search_modestringYesFAST or ACCURATE.
collection_idstringNoOptional scope when the person belongs to multiple collections.

Request

const fetch = require("node-fetch");

const personId = "68defec6a9a7b4933d5652f3";

async function run() {
const res = await fetch("https://api.verifik.co/v2/face-recognition/verify", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
id: personId,
images: ["<base64>", "<base64>"],
min_score: 0.75,
search_mode: "FAST",
collection_id: "<optional_collection_mongo_id>",
}),
});
console.log(await res.json());
}

run();

Response

{
"id": "9DVKW",
"data": {
"match": {
"id": "68defec6a9a7b4933d5652f3",
"name": "Jane Doe",
"score": 0.9132,
"gender": "F",
"date_of_birth": "1990-01-15",
"thumbnails": [
{ "id": "thumb-uuid", "thumbnail": "<base64>" }
],
"collections": []
}
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "April 9, 2026 12:12 AM"
}
}

Notes

  • 1:1 vs enrollment: Unlike Face Search (1:N), you already know which person to test; this endpoint scores probe images against that record.
  • Images: Use one or more captures of the same subject; raw base64 without a data: prefix unless your client adds it consistently.
  • Related flows: For comparing two arbitrary image sets without an enrolled id, use Face Comparison; for gallery search, use Face Search.