The Retrieve Collection by ID API allows you to fetch information about a specific collection of facial data using its unique identifier (ID). This API is useful for obtaining details about a particular collection within your facial recognition system.
To retrieve information about a specific collection, make a GET request to the endpoint /v2/face-recognition/collections/{id} where {id} should be replaced with the unique identifier of the collection you want to fetch.
The API will respond with detailed information about the collection, including its name, description, timestamps, and other relevant metadata. You can use this information for various purposes such as managing user profiles, updating collection details, or performing other operations specific to your facial recognition system.
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/face-recognition/collections/><id>',
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);
}
{
"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"
}
}