Verify a palm
To check that a capture is a person you already know, such as the customer who claims an account, send it to that
person's :verify call. Bioprints answers only whether it is them.
Send the capture
Name the person in the path, and the hand and the reader in metadata:
curl -s https://api.bioprints.io/palm/v1/people/member-4821:verify \
-H "Authorization: Bearer $BIOPRINTS_KEY" \
-F "metadata={\"hand\": \"left\", \"sensorSerial\": \"$READER_SERIAL\"};type=application/json" \
-F "left_rgb=@capture_rgb.jpg;type=image/jpeg" \
-F "left_ir=@capture_ir.jpg;type=image/jpeg"
Send the image parts for the hand metadata.hand names, and no others. Verify takes no Idempotency-Key: it changes
nothing, so you can send it again as it is.
Read the answer
When the capture is that person, Bioprints answers 200 OK:
{
"verificationId": "019ac3e2-0a1b-7c2d-8e3f-4a5b6c7d8e9f",
"scores": [0.98, 0.97, 0.99, 0.96, 0.95, 0.97, 0.98, 0.99, 0.96, 0.97],
"thresholds": [0.729, 0.756, 0.729, 0.76, 0.7336, 0.739, 0.7579, 0.75, 0.72, 0.7312]
}
The engine's own verdict passed, so you do not compare scores with thresholds yourself. Every other outcome is a
refusal:
| Status | code | It means |
|---|---|---|
404 | not_verified | The capture is not that person, or the hand is frozen or being removed. The body carries a verificationId. |
404 | subject_not_found | No live person has this reference. |
404 | hand_not_enrolled | The person has no enrolled hand of this side. |
422 | capture_quality_too_low | The engine could not use the image. Take the capture again. |
403 | sensor_not_allowed | The serial is not a reader your tenant may use, or the reader is frozen. |
A not_verified body looks like this:
{
"type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
"title": "Request refused",
"status": 404,
"code": "not_verified",
"verificationId": "019ac3e2-1c2d-7e3f-9a4b-5c6d7e8f9a0b",
"traceId": "00-6f1c2d3e4a5b6c7d8e9f0a1b2c3d4e5f-1a2b3c4d5e6f7a8b-01"
}
When the capture is somebody else, Bioprints never says who it was and returns no scores. Quote the verificationId
when you ask us about a verification.
When the engine is busy
Verify counts toward your tenant's palm calls a second, as identify and enroll do. A 429 rate_limited, or a 503
engine_busy or engine_unavailable, carries Retry-After: wait that many seconds and send the call again.
See also
- Galleries explains why verify searches your whole gallery, not only the person you name.
- Freeze a hand, a person or a reader: stop a hand being verified without removing it.