The Biometric Validation Object
Overviewβ
The Biometric Validation object represents the process of verifying user identities through biometric data within your Verifik projects. This object contains all the information needed to track and manage biometric verification requests, including facial recognition and liveness detection.
Attributesβ
clientβ
Type: ObjectId
Required: Read-Only
The client account that owns this biometric validation. This is automatically set based on your authentication token.
projectβ
Type: ObjectId
Required: No
The project where this biometric validation is being performed. This is the _id generated when creating a project.
projectFlowβ
Type: ObjectId
Required: Yes
The project flow where this biometric validation is being performed. This is the _id generated when creating a project flow.
livenessSessionβ
Type: ObjectId
Required: No
The liveness detection session associated with this biometric validation. This tracks the user's liveness verification process.
appRegistrationβ
Type: ObjectId
Required: No
The app registration record linked to this biometric validation. This connects the validation to a specific user registration process.
statusβ
Type: String
Required: Yes
The current status of the biometric validation process. Can be:
"new"- Validation request created but not yet processed (default)"pending"- Validation is in progress"completed"- Biometric validation completed successfully"failed"- Biometric validation failed"expired"- Validation session has expired
identifierβ
Type: String
Required: Yes
A unique identifier for the user or session (e.g., email, phone, or custom ID).
typeβ
Type: String
Required: Yes
The type of biometric validation being performed:
"validation"- General biometric identity validation"login"- Biometric verification during user authentication"onboarding"- Biometric verification during user registration
expiresAtβ
Type: Date
Required: No
The expiration date and time for the validation session.
redirectUrlβ
Type: String
Required: No
URL to redirect to after successful validation.
webhookUrlβ
Type: String
Required: No
Webhook URL for validation status notifications.
requires2FAβ
Type: Boolean
Required: No
Flag indicating if two-factor authentication is required.
ipAddressβ
Type: String
Required: No
IP address of the user performing the validation.
sendViaEmailβ
Type: Boolean
Required: No
Flag to send validation link via email.
emailβ
Type: String
Required: No
Email address to send validation link to (required if sendViaEmail is true).
languageβ
Type: String
Required: No
Language for email templates (en/es). Defaults to "en".
biometricDataβ
Type: Object
Required: No
Contains the biometric data and verification results:
faceImage- Base64 encoded face imagetemplate- Biometric template dataquality- Image quality scorelivenessScore- Liveness detection score
verificationResultsβ
Type: Object
Required: No
Contains the verification results:
livenessDetection- Liveness detection resultidentityMatch- Identity matching resultqualityScore- Overall quality scoreantiSpoofing- Anti-spoofing detection result
riskScoreβ
Type: Number
Required: No
Risk assessment score for the validation.
createdAtβ
Type: Date
Required: Yes
Timestamp when the biometric validation was created.
updatedAtβ
Type: Date
Required: Yes
Timestamp when the biometric validation was last updated.
completedAtβ
Type: Date
Required: No
Timestamp when the biometric validation was completed successfully.
Example Objectβ
{
"_id": "biometric_validation_123456789",
"client": "client_123456789",
"project": "project_123456789",
"projectFlow": "flow_123456789",
"livenessSession": "liveness_123456789",
"appRegistration": "reg_123456789",
"status": "completed",
"identifier": "user@example.com",
"type": "validation",
"expiresAt": "2024-01-15T11:30:00Z",
"redirectUrl": "https://example.com/success",
"webhookUrl": "https://example.com/webhook",
"requires2FA": false,
"ipAddress": "192.168.1.1",
"sendViaEmail": true,
"email": "user@example.com",
"language": "en",
"biometricData": {
"faceImage": "base64_encoded_image",
"template": "biometric_template_data",
"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"
}