Biometric Verification
Verify a user's face against the stored enrollment template — for login, payments or contract signing.
Before integrating, install the SDK in Getting Started → Install the SDK →
/api/kyc/verify Secure login, transfer authorization, payment approval, contract signing — any operation where you need to confirm the person is the enrolled user.
Flow
Environment validation
RASP checks before any capture.
Face capture
Face capture with liveness check.
Encrypted payload
The SDK returns the encrypted template + payload to your banking app.
Verify request
Your backend forwards template + payload to /api/kyc/verify, which compares against the stored template.
SDK call
// Step-up auth — login, payment, contract signing, etc.
SmartId
.getInstance()
.captureBiometric(getApplicationContext())
.onSuccess { template, payload ->
// forward to your backend → POST /api/kyc/verify
}
.onFailure { message, errorCode ->
// capture failed
}
.start() SID.shared.startLocation()
SID.shared
.captureBiometric()
.onSuccess(success: { template, payload in
// forward to your backend → POST /api/kyc/verify
})
.onFailure(failure: { message, errorCode in
// capture failed
})
.start() Backend call
curl -X POST https://<api-url>/api/kyc/verify \\
-H "Content-Type: application/json" \\
-H "X-Api-Key: <your-api-key>" \\
-d '{
"User": "[email protected]",
"Template": "<template from SDK>",
"PayLoad": "<payload from SDK>"
}' Request body
| Field | Type | Required | Description |
|---|---|---|---|
User | string | Required | Unique user identifier (must be previously enrolled) |
Template | string | Required | Encrypted biometric template from the SDK |
PayLoad | string | Required | Additional metadata from the SDK |
Response codes
| Code | Meaning |
|---|---|
200 | Verification successful |
406 | User not found (not previously enrolled) |
407 | Template validation failed |
409 | Face comparison failed |
413 | Similarity below threshold |
414 | User channel disabled |
425/426 | Timestamp invalid / template expired |
500/701 | Internal error / service call error |