Skip to main content

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: string (reference id)
Required: Read-Only

The client account that owns this biometric validation. This is automatically set based on your authentication token.

project

Type: string (reference id)
Required: No

The project where this biometric validation is being performed. This is the _id generated when creating a project.

projectFlow

Type: string (reference id)
Required: Yes

The project flow where this biometric validation is being performed. This is the _id generated when creating a project flow.

livenessSession

Type: string (reference id)
Required: No

The liveness detection session associated with this biometric validation. This tracks the user's liveness verification process.

appRegistration

Type: string (reference id)
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 image
  • template - Biometric template data
  • quality - Image quality score
  • livenessScore - Liveness detection score

verificationResults

Type: Object
Required: No

Contains the verification results:

  • livenessDetection - Liveness detection result
  • identityMatch - Identity matching result
  • qualityScore - Overall quality score
  • antiSpoofing - 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"
}