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β
- Node.js
- Python
- PHP
- Go
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);
});
import requests
url = "https://api.verifik.co/v2/biometric-validations"
params = {
'page': 1,
'perPage': 10,
'populates[]': ['client', 'project'],
'where_status': 'validated',
'where_type': 'login',
'sort': '-createdAt'
}
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
response = requests.request("GET", url, headers=headers, params=params)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.verifik.co/v2/biometric-validations?page=1&perPage=10&populates[]=client&populates[]=project&where_status=validated&where_type=login&sort=-createdAt',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_ACCESS_TOKEN'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.verifik.co/v2/biometric-validations?page=1&perPage=10&populates[]=client&populates[]=project&where_status=validated&where_type=login&sort=-createdAt"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(string(body))
}
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"
}