List All Document Liveness Validations
Endpointβ
GET https://api.verifik.co/v2/document-liveness
With this service, you can retrieve all document liveness validations that you have processed.
Headersβ
Content-Typeβ
Type: String
Required: Yes
application/json
Authorizationβ
Type: String
Required: Yes
Bearer <token>
Query Parametersβ
pageβ
Type: number
Required: No
Page number for pagination (default: 1)
limitβ
Type: number
Required: No
Number of records per page (default: 10, maximum: 100)
statusβ
Type: string
Required: No
Filter by status: new, processing, completed, failed
populates[]β
Type: string
Required: No
Optional array of related data to include. Available options: client, appRegistration.
Requestβ
- Node.js
- Python
- PHP
- Go
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/document-liveness',
params: {
page: 1,
limit: 10,
status: 'completed',
'populates[]': ['client', 'appRegistration']
},
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
conn.request("GET", "/v2/document-liveness?page=1&limit=10&status=completed&populates[]=client&populates[]=appRegistration", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.verifik.co/v2/document-liveness', [
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Bearer <your_token>',
],
'query' => [
'page' => 1,
'limit' => 10,
'status' => 'completed',
'populates[]' => ['client', 'appRegistration']
]
]);
echo $response->getBody();
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.verifik.co/v2/document-liveness?page=1&limit=10&status=completed&populates[]=client&populates[]=appRegistration"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer <your_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(string(body))
}
Responseβ
- 200
- 400
{
"success": true,
"data": [
{
"_id": "document_liveness_123456789",
"client": {
"_id": "client_123456789",
"name": "Example Client",
"email": "client@example.com"
},
"appRegistration": {
"_id": "app_registration_123456789",
"fullName": "John Doe",
"email": "user@example.com",
"status": "completed"
},
"imageSaved": true,
"imageUrl": "https://cdn.verifik.co/images/document_123456789.jpg",
"status": "completed",
"validationResults": {
"screenReplay": {
"passed": true,
"score": 0.95
},
"printedCopy": {
"passed": true,
"score": 0.90
},
"portraitSubstitution": {
"passed": true,
"score": 0.88
},
"digitalManipulation": {
"passed": true,
"score": 0.92
}
},
"riskScore": 0.05,
"confidence": 0.91,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:32:00Z",
"completedAt": "2024-01-15T10:32:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"pages": 1
},
"signature": {
"dateTime": "April 11, 2023 12:25 PM",
"message": "Certified by Verifik.co"
}
}
{
"success": false,
"error": "Invalid query parameters",
"code": "INVALID_PARAMETERS"
}
</TabItem>
</Tabs>
### Features
- **Complete Listing**: Retrieve all processed document liveness validations
- **Pagination**: Control page and record limit per page
- **Status Filtering**: Filter by status (new, processing, completed, failed)
- **Data Population**: Include client and application registration information
- **Validation Results**: Details of all anti-spoofing validations
- **Confidence Scores**: Detailed scores for each validation type
- **Image Storage**: Information about images saved to CDN
- **Multiple Languages**: Support for JavaScript, Python, PHP, and Swift
- **Detailed Information**: Includes timestamps, risk scores, and configuration