Biometric Authentication APIs
Use sandbox biometric authentication APIs to init, verify, and refresh ABHA biometric sessions.
Use these APIs to start and verify a biometric ABHA authentication flow.
Replace the PID block with a value from a certified biometric device.
POST Biometric Auth Init
POST
https://apisbx.abdm.gov.in/hcx/abha/biometric/auth/initStart a biometric ABHA authentication transaction.
Headers
| Header | Value | Notes |
|---|---|---|
accept | */* | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
Authorization | $TOKEN | Use a bearer token. |
process | Preauth|Discharge | Set the claim process. |
payerid | 123@hcx | Set the payer participant ID. |
Request body
{
"scope": [
"abha-login",
"aadhaar-bio-verify"
],
"loginHint": "abha-number",
"loginId": "91-XXXX-XXXX-0302",
"otpSystem": "aadhaar",
"authMode": "FINGERPRINT"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/abha/biometric/auth/init" \
-H "accept: */*" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-H "process: Preauth|Discharge" \
-H "payerid: 123@hcx" \
-d '
{
"scope": [
"abha-login",
"aadhaar-bio-verify"
],
"loginHint": "abha-number",
"loginId": "91-XXXX-XXXX-0302",
"otpSystem": "aadhaar",
"authMode": "FINGERPRINT"
}
'POST Biometric Auth Verify
POST
https://apisbx.abdm.gov.in/hcx/abha/biometric/auth/verifyVerify a biometric ABHA authentication transaction.
Headers
| Header | Value | Notes |
|---|---|---|
accept | */* | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
Authorization | $TOKEN | Use a bearer token. |
process | Preauth|Discharge | Set the claim process. |
payerid | 123@hcx | Set the payer participant ID. |
Request body
{
"scope": [
"abha-login",
"aadhaar-bio-verify"
],
"authData": {
"authMethods": [
"bio"
],
"bio": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"fingerPrintAuthPid": "PID_BLOCK"
},
"face": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"faceAuthPid": "PID_BLOCK"
},
"iris": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"irisAuthPid": "PID_BLOCK"
},
"otp": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"otpValue": "123456"
}
},
"authMode": "FINGERPRINT"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/abha/biometric/auth/verify" \
-H "accept: */*" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-H "process: Preauth|Discharge" \
-H "payerid: 123@hcx" \
-d '
{
"scope": [
"abha-login",
"aadhaar-bio-verify"
],
"authData": {
"authMethods": [
"bio"
],
"bio": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"fingerPrintAuthPid": "PID_BLOCK"
},
"face": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"faceAuthPid": "PID_BLOCK"
},
"iris": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"irisAuthPid": "PID_BLOCK"
},
"otp": {
"txnId": "d21b3db9-1111-2222-3333-8f75e7f86b9f",
"otpValue": "123456"
}
},
"authMode": "FINGERPRINT"
}
'GET Refresh Token
GET
https://apisbx.abdm.gov.in/hcx/abha/biometric/auth/refresh/tokenRefresh an ABHA biometric authentication token.
The source disables the TIMESTAMP and REQUEST-ID headers for this request.
Headers
| Header | Value | Notes |
|---|---|---|
R-token | $REFRESH_TOKEN | Use the refresh token. |
Authorization | $TOKEN | Use a bearer token. |
payerid | 123@hcx | Set the payer participant ID. |
process | Preauth|Discharge | Set the claim process. |
cURL
curl -X GET "https://apisbx.abdm.gov.in/hcx/abha/biometric/auth/refresh/token" \
-H "R-token: $REFRESH_TOKEN" \
-H "Authorization: Bearer $TOKEN" \
-H "payerid: 123@hcx" \
-H "process: Preauth|Discharge"Sources
- biometric-authentication-postman.md (NHCX sandbox portal)