Skip to main content

List All Persons

Endpointโ€‹

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

Returns persons stored in Verifik for your project. Supports pagination, filters, and optional population of related collections or client data.

Headersโ€‹

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Paramsโ€‹

NameTypeRequiredDescription
pagenumberNoPage number (default: 1).
limitnumberNoPage size (default: 10, max: 100).
collectionstringNoFilter by collection ID.
statusstringNoOne of active, inactive, pending.
populates[]string[]NoRelated data to include: collections, client. Repeat the query key or pass an array per your HTTP client.

Requestโ€‹

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

async function run() {
const params = new URLSearchParams({ page: "1", limit: "10", status: "active" });
params.append("populates[]", "collections");

const res = await fetch(`https://api.verifik.co/v2/face-recognition/persons?${params}`, {
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": [
{
"_id": "collection_123456789",
"name": "VIP Customers",
"description": "High-value customers"
}
],
"notes": "VIP customer",
"client": "client_123456789",
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "โ€ฆ"
}
}

Notesโ€‹

  • Typical responses use the Verifik envelope (id, data, signature); list payloads may also include pagination at the top levelโ€”confirm the exact shape in your environment.
  • limit is capped at 100; use page to walk large result sets.
  • Use populates[] when you need embedded collections or client instead of raw IDs only.
  • Each item in data follows The Person Object (fields may vary with population and API version).