Skip to main content

List All Biometric Validations

Endpoint​

GET https://api.verifik.co/v2/biometric-validations

Retrieves a list of biometric validation records based on specified filters and parameters.

Headers​

Authorization​

Type: String
Required: Yes

Bearer {YOUR_ACCESS_TOKEN}

Query Parameters​

page​

Type: Number
Required: No

Page number (starts at 1).

Example: page=1

perPage​

Type: Number
Required: No

Items per page (default: 20).

Example: perPage=10

offset​

Type: Number
Required: No

Alternative to page for skipping records.

Example: offset=20

populates[]​

Type: Array
Required: No

Fields to populate with related data.

Example: populates[]=client&populates[]=project

where_client​

Type: String
Required: No

Filter by client ID.

Example: where_client=507f1f77bcf86cd799439013

where_status​

Type: String
Required: No

Filter by validation status.

Example: where_status=validated

where_type​

Type: String
Required: No

Filter by validation type.

Example: where_type=login

where_livenessSession​

Type: String
Required: No

Filter by liveness session ID.

Example: where_livenessSession=674de8df21c72be3cc42b8a7

in_status​

Type: Array
Required: No

Filter by multiple statuses.

Example: in_status[]=validated&in_status[]=failed

where>_createdAt​

Type: String
Required: No

Filter records created after date.

Example: where>_createdAt=2024-12-01

sort​

Type: String
Required: No

Sort order (prefix with - for descending).

Example: sort=-createdAt

Request​

Request​

const axios = require("axios");

const config = {
method: "get",
url: "https://api.verifik.co/v2/biometric-validations",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
params: {
page: 1,
perPage: 10,
"populates[]": ["client", "project"],
where_status: "validated",
where_type: "login",
sort: "-createdAt"
}
};

axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});

Response​

{
"success": true,
"data": [
{
"_id": "biometric_validation_123456789",
"client": {
"_id": "client_123456789",
"name": "Example Client",
"email": "client@example.com"
},
"project": {
"_id": "project_123456789",
"name": "Example Project",
"description": "Example project description"
},
"status": "completed",
"identifier": "user@example.com",
"type": "login",
"expiresAt": "2024-01-15T11:30:00Z",
"requires2FA": false,
"ipAddress": "192.168.1.1",
"biometricData": {
"quality": "good",
"livenessScore": 0.95
},
"verificationResults": {
"livenessDetection": "passed",
"identityMatch": "passed",
"qualityScore": 0.95,
"antiSpoofing": "passed"
},
"riskScore": 0.05,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:32:00Z",
"completedAt": "2024-01-15T10:32:00Z"
}
],
"pagination": {
"page": 1,
"perPage": 10,
"total": 1,
"pages": 1
}
}

Error Responses​

{
"success": false,
"error": "Invalid query parameters",
"code": "INVALID_PARAMETERS"
}