Persons
Overviewβ
The Persons API allows you to manage individual person records in your verification system. Each person record can contain personal information, biometric data, and verification status.
API Endpointsβ
Create a Personβ
POST https://api.verifik.co/v2/persons
Create a Person with Liveness Detectionβ
POST https://api.verifik.co/v2/persons/liveness
List All Personsβ
GET https://api.verifik.co/v2/persons
Retrieve a Personβ
GET https://api.verifik.co/v2/persons/{personId}
Update a Personβ
PUT https://api.verifik.co/v2/persons/{personId}
Delete a Personβ
DELETE https://api.verifik.co/v2/persons/{personId}
Person Object Structureβ
{
"id": "person_123456789",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"dateOfBirth": "1990-01-15",
"documentType": "passport",
"documentNumber": "123456789",
"biometricData": {
"faceImage": "base64_encoded_image",
"fingerprint": "base64_encoded_fingerprint",
"livenessScore": 0.95
},
"verificationStatus": "verified",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
Creating a Personβ
Basic Person Creationβ
const personData = {
firstName: "John",
lastName: "Doe",
email: "john.doe@example.com",
phone: "+1234567890",
dateOfBirth: "1990-01-15",
documentType: "passport",
documentNumber: "123456789"
};
const response = await fetch('https://api.verifik.co/v2/persons', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
},
body: JSON.stringify(personData)
});
Person with Liveness Detectionβ
const personData = {
firstName: "John",
lastName: "Doe",
email: "john.doe@example.com",
biometricData: {
faceImage: "base64_encoded_image",
livenessDetection: true
}
};
const response = await fetch('https://api.verifik.co/v2/persons/liveness', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
},
body: JSON.stringify(personData)
});
Verification Statusβ
pending- Person created but not yet verifiedverified- Person has been successfully verifiedfailed- Verification failedexpired- Verification has expired
Use Casesβ
- User Onboarding: Create person records during registration
- Biometric Storage: Store biometric data for future verification
- Identity Management: Maintain a database of verified individuals
- Access Control: Use person records for secure access systems
- Compliance: Meet regulatory requirements for identity verification