Decisions and scores
What score counts as a match?
match_score runs from 0 to 100 with up to two decimals. is_match is true when match_score is 70 or more. confidence is HIGH at 85 or more, MEDIUM from 60 to below 85 and LOW below 60. The threshold is the same whichever source scored the pair, so your logic does not need to change per call.
What do I do with a MEDIUM confidence non-match?
Scores from 60 to below 70 areMEDIUM but not a match. Send them to manual review instead of rejecting the user outright. Common causes are an old or worn ID photo, glasses, heavy shadows or a selfie taken at an angle.
Should I run liveness before face match?
Yes. Face match compares any two images, including a photo of a photo. Running liveness first makes sure the selfie came from a live person in front of the camera. Then pass that same selfie to face match asimage1 and the ID photo as image2.
What should I build my logic on?
Useis_match, match_score and confidence for face match, and is_live for liveness. Treat liveness_score as supporting detail. data.extras carries supplementary signals whose keys can differ from call to call, so log it but do not branch on it.
Input
How do I send the images?
Face match takesmultipart/form-data: image1 as a file and either image2 as a file or image2_url. Liveness takes JSON with the selfie as base64 in person; a data:image/jpeg;base64, prefix is accepted and stripped.
What are the rules for image2_url?
Use a publichttps URL on the default port that returns the image directly, without a redirect, within a few seconds. A URL that is not https, points at a private address, does not return an image or does not answer in time is rejected with IDTO_001 (400) and is not billed. When in doubt, upload the file as image2 instead.
What is the image size limit?
10 MB per image. Larger images returnIDTO_503 (413) and are not billed. A file that cannot be read as an image is rejected and not billed. JPEG and PNG are the safest formats.
What happens if an image is missing?
A face match call withoutimage1 is rejected. A call with neither image2 nor image2_url returns IDTO_001 (400) with the message “Invalid input: either image2 or image2_url is required.” A liveness call with an empty person returns IDTO_001 (400). None of these are billed.
Billing and errors
Am I charged when faces do not match or liveness fails?
Yes. A 2xx response withis_match: false or is_live: false is a completed check and is billed, with billed: true. Only non-2xx errors are free, and they carry billed: false.
What do IDTO_509 and IDTO_609 mean?
No decision could be produced:IDTO_509 for face match and IDTO_609 for liveness, both HTTP 500 and not billed. Retry once with a clearer, front-facing photo. If it repeats, ask the user to retake the selfie in better light.
Which errors should I handle?
Why does a check inside a workflow show billed false?
When you passworkflow_session_token of an in-progress verification session that charges for the face step, the call is not charged again and billed is false. This applies to both face match and liveness.
Retries and limits
Can I retry safely?
Yes. Both endpoints accept anIdempotency-Key header. Retry with the same key and the same request and you get the stored first response back without a second charge. A retry while the first call is still running returns IDTO_004 (409); the same key with a different request returns IDTO_010 (422). Use a new key for each new selfie.
How long should my client wait?
idto waits up to 30 seconds for a verification source to answer. Set your client timeout to about 60 seconds, and on a client-side timeout retry with the sameIdempotency-Key.
Is there a request quota?
There is no fixed per-key quota for server calls. Throttling shows up asIDTO_006 (429) and load shedding as IDTO_008 (503), neither billed. Back off with jitter. See Rate limits.
Going live
What should I show the end user?
Do not show scores or codes. Onis_live: false, ask for a new selfie with the face centred, eyes open and good light. On a LOW non-match, explain the selfie did not match the ID photo and offer one retake. On IDTO_503, ask for a smaller or clearer photo.
How should I capture the selfie?
The idto SDK face step guides the user through capture for you. If you capture yourself, use the front camera, one face in frame, no screen or printed photo, and send the original image rather than a heavily compressed copy.Was this page helpful? Email us at tech@idto.ai with the page link.