Skip to main content

Retrieve a Person

Endpointโ€‹

GET https://api.verifik.co/v2/face-recognition/persons/{id}

Returns one person by MongoDB _id (the {id} path segment).

Headersโ€‹

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Paramsโ€‹

NameTypeRequiredDescription
idstringYesPerson ID in the URL path (/persons/{id}).

Requestโ€‹

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

async function run() {
const id = "person_123456789";
const res = await fetch(`https://api.verifik.co/v2/face-recognition/persons/${id}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(await res.json());
}

run();

Responseโ€‹

{
"id": "โ€ฆ",
"data": {
"_id": "person_123456789",
"name": "John Doe",
"gender": "M",
"date_of_birth": { "year": 1990, "month": 1, "day": 15 },
"nationality": "US",
"images": ["<base64>", "<base64>"],
"collections": ["collection_123456789"],
"notes": "VIP customer",
"client": "client_123456789",
"status": "active",
"faceEncodings": ["โ€ฆ", "โ€ฆ"],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "โ€ฆ"
}
}

Notesโ€‹

  • {id} is the personโ€™s _id returned from create or list endpoints.
  • Successful payloads follow The Person Object; faceEncodings and other fields depend on enrollment and API version.
  • 404 indicates no person exists for that ID (or it is outside your client scope).