The Retrieve Persons in a Collection API allows you to retrieve information about persons stored within a specific collection of facial data. This API provides details about individuals, including their names, gender, date of birth, nationality, thumbnails, and associated collection information.

To retrieve information about persons within a specific collection, make a GET request to the endpoint where {id} should be replaced with the unique identifier of the collection you want to query.

The API will respond with detailed information about the persons within the collection, including their names, gender, date of birth, nationality, associated thumbnails, and collection information. This information is useful for managing and organizing facial data within your collections, as well as for performing various facial recognition and identification tasks.

Implementation

Request

import axios from 'axios';

const options = {
  method: 'GET',
  url: '<https://api.verifik.co/v2/face-recognition/collections/><id>/persons',
  params: {
  },
  headers: {
    Accept: 'application/json',
    Authorization: 'jwt <tu_token>'
  }
  };

try {
 notFou const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}

Response 200 - (Successful request)

{
  "data": {
    "__v": 0,
    "_id": "65175da13e81e4fabc12345",
    "code": "dac2c81b-96a6-4f19-ab54-d1a72d55b64b",
    "name": "Test2",
    "client": "65175da13e81e4fabc12345",
    "deleted": false,
    "createdAt": "2023-09-29T23:28:33.894Z",
    "updatedAt": "2023-09-29T23:28:33.894Z",
    "description": "Test Collection"
  }
}