For developers
Face match API that compares a selfie to the ID photo.
Send an ID photo and a selfie in one request. Get back the face found in each photo and, when both have one, whether they show the same person and how similar they are.
Sample results
See what the face match API returns
These are real responses from the API for sample documents of a fictional country and an AI generated selfie. The people in them do not exist.

reference ID document
probe SelfieFaces matchScore 0.9086 · match at 0.363 or above
The passport portrait and the selfie show the same person.
{
"success": true,
"message": "Face match completed",
"data": {
"id": "01a214aa-9c5c-7121-b716-3338a650853b",
"status": "match",
"match": true,
"score": 0.9086,
"threshold": 0.363,
"faces_found": {
"reference": true,
"probe": true
},
"faces": {
"reference": {
"box": [
146,
278.8,
160.1,
220.6
],
"landmarks": [
[
191,
366.1
],
[
263,
365.7
],
[
228.2,
407.9
],
[
198.3,
440.1
],
[
261.8,
440.7
]
],
"confidence": 0.9333
},
"probe": {
"box": [
279.6,
258.7,
365.8,
487.6
],
"landmarks": [
[
371,
463.3
],
[
535.9,
445.6
],
[
456.3,
558.7
],
[
399.4,
627.1
],
[
542.7,
612.3
]
],
"confidence": 0.9564
}
},
"environment": "sandbox",
"created_at": "2026-11-25T21:44:15.000000Z"
}
} 
reference ID document
probe SelfieFaces do not matchScore 0.2384 · match at 0.363 or above
The ID card shows a different person, so the score falls below the match threshold.
{
"success": true,
"message": "Face match completed",
"data": {
"id": "01a214aa-9d9f-72c3-bf28-036103cc1718",
"status": "no_match",
"match": false,
"score": 0.2384,
"threshold": 0.363,
"faces_found": {
"reference": true,
"probe": true
},
"faces": {
"reference": {
"box": [
106.3,
190.8,
146,
200.9
],
"landmarks": [
[
145.4,
271.5
],
[
213.2,
271.4
],
[
178.9,
309.6
],
[
148.7,
336
],
[
204.9,
338.9
]
],
"confidence": 0.9218
},
"probe": {
"box": [
279.6,
258.7,
365.8,
487.6
],
"landmarks": [
[
371,
463.3
],
[
535.9,
445.6
],
[
456.3,
558.7
],
[
399.4,
627.1
],
[
542.7,
612.3
]
],
"confidence": 0.9564
}
},
"environment": "sandbox",
"created_at": "2026-11-25T21:44:15.000000Z"
}
} 
reference ID document
probe SelfieNo face foundNo score
The licence has no portrait, so there is nothing to compare and no score.
{
"success": true,
"message": "Face match completed",
"data": {
"id": "01a214aa-9e9e-7191-beea-62ff7b85c10e",
"status": "no_face",
"match": false,
"score": null,
"threshold": 0.363,
"faces_found": {
"reference": false,
"probe": true
},
"faces": {
"reference": null,
"probe": {
"box": [
279.6,
258.7,
365.8,
487.6
],
"landmarks": [
[
371,
463.3
],
[
535.9,
445.6
],
[
456.3,
558.7
],
[
399.4,
627.1
],
[
542.7,
612.3
]
],
"confidence": 0.9564
}
},
"environment": "sandbox",
"created_at": "2026-11-25T21:44:15.000000Z"
}
} One request
Compare two photos with one call
Create a Sandbox API key in the dashboard and send both photos from your server. Send JPG, PNG or WebP photos of up to 8 MB each.
- Safe to retryCreate one idempotency key per new comparison. Retry from the same API key, with the same idempotency key and photos, to get the first result back without using another verification. The same key with other photos returns 409.
- Sandbox firstComparisons with a Sandbox key use your monthly Sandbox checks first. Once those run out, they use Live verifications if your plan includes Live. Keep both keys on your server, never in an app.
- Works on the whole documentSend the passport or ID card page. The API compares the largest face in each photo.
export IDEMPOTENCY_KEY=$(uuidgen) curl https://api.credflare.net/api/v1/client/face-matches \ -H "X-Client-ID: $CREDFLARE_CLIENT_ID" \ -H "X-Client-Secret: $CREDFLARE_CLIENT_SECRET" \ -H "X-Idempotency-Key: $IDEMPOTENCY_KEY" \ -F [email protected] \ -F [email protected]
The response
What each status means
matchThe score is at or above the threshold. Let the person continue, or add a liveness check for stronger proof.
no_matchThe faces are not similar enough. Decide on the status, since the returned score is rounded. Ask for a new selfie or send the case to your team.
no_faceA photo had no usable face.
faces_foundsays which one, so you can ask for that photo again.
Pricing and privacy
One verification per completed comparison
A completed comparison counts even when the faces do not match or a face is missing. A request refused because a photo is unreadable, the service is down or your allowance is used up uses nothing.
The photos are compared and then discarded. Credflare keeps the result, not the images.
See plans and pricesNeed more than a match?
Add liveness and document checks
To confirm a real person is in front of the camera, use selfie verification with liveness prompts. For a full onboarding flow, see identity verification.
Questions
Face match API questions
What is a face match API?
It compares the faces in two photos and tells you whether they show the same person. You send an ID photo and a selfie. When both photos have a face, the API returns a status, a similarity score and where it found each face. When one has no face, the status is no_face and the score is null.
Can I try the face match API for free?
Yes. The Free plan includes API access, 100 Live verifications given once and 10 Sandbox checks each month, with no card. Each completed comparison uses one verification, even when the faces do not match or a face is missing.
Does it work with a photo of a passport or ID card?
Yes. Send the whole document page. The API compares the largest face in each photo. On most passports and ID cards that is the holder’s portrait. If another face is larger, crop to the portrait before sending.
What happens if a photo has no face?
The status is no_face, the score is null and faces_found shows which photo is missing a face. It still uses one verification, because the comparison ran.
Do you store the photos?
No. The photos are compared and discarded. Credflare keeps the result: status, score, threshold and, for each face found, its box, landmark points and detection confidence. It also keeps one hash of the two photos to recognise a retry.
Does the face verification API check liveness?
No. This API compares two photos. To check that a real person took the selfie, run a verification with liveness prompts on the hosted page.
Start with 100 free Live verifications
Test first with the 10 free Sandbox checks you get each month.