Skip to main content

Face Search 1:N (Active User)

Endpoint​

POST https://api.verifik.co/v2/face-recognition/search-active-user

Performs 1:N search using a single probe image without liveness. Intended for active-user verification flows.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params​

NameTypeRequiredDescription
imagestringYesBase64 image string.
collection_idstringNoRestrict search to this collection.
osstringYesANDROID, IOS, or DESKTOP.
min_scorenumberYesMatch threshold (0.5–1.0).
search_modestringYesOne of FAST or ACCURATE.

Request​

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

async function run() {
const res = await fetch("https://api.verifik.co/v2/face-recognition/search-active-user", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
image: "<base64>",
collection_id: "<collection_id>",
os: "DESKTOP",
min_score: 0.7,
search_mode: "FAST"
}),
});
console.log(await res.json());
}

run();

Response​

{
"id": "SAU01",
"data": [
{ "id": "person_id", "score": 0.93 }
],
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "January 16, 2024 3:44 PM"
}
}

Notes​

  • No liveness is performed; use when you already trust the capture context.