Skip to main content

Validate an App Login Biometric Validation

Endpoint​

POST https://api.verifik.co/v2/biometric-validations/validate

Overview​

A Biometric Validation is an instance within Verifik's system that allows you to process and validate user identities through facial recognition and liveness detection. This endpoint processes the biometric data submitted by users to verify their identity and complete the validation process. This is typically used after a user has completed their liveness detection session.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer {YOUR_ACCESS_TOKEN}
warning

The JWT Token you should use when validating biometric validations must contain a valid livenessSession token that was provided during the creation of the biometric validation.

The token provided in this response is the token you can pass to your own application for signing into your application. In the no-code solution, this token is appended to the redirectUrl of your projectFlow.

E.g., https://verifik.co?token={token}

Parameters​

NameTypeRequiredDescription
imagestringYesBase64 encoded image of the user's face for biometric validation.

Request​

import axios from 'axios';

const options = {
method: 'POST',
url: 'https://api.verifik.co/v2/biometric-validations/validate',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
},
data: {
image: 'base64_encoded_image_data'
}
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}

Response​

{
"success": true,
"data": {
"_id": "biometric_validation_123456789",
"status": "completed",
"verificationResults": {
"livenessDetection": "passed",
"identityMatch": "passed",
"qualityScore": 0.95,
"antiSpoofing": "passed"
},
"biometricData": {
"faceImage": "base64_encoded_image",
"template": "biometric_template_data",
"quality": "good",
"livenessScore": 0.95
},
"riskScore": 0.05,
"completedAt": "2024-01-15T10:32:00Z",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}

Features​

  • Biometric Verification: Process facial recognition and liveness detection
  • Quality Assessment: Analyze image quality and biometric template quality
  • Anti-Spoofing Protection: Advanced security against fake biometric attempts
  • Risk Scoring: Calculate risk scores for authentication decisions
  • Authentication Token: Generate secure tokens for application access
  • Multiple Programming Languages: Support for JavaScript, Python, PHP, and Swift
  • Comprehensive Results: Detailed verification results and biometric data
  • Security Features: Liveness session validation and secure token generation