Skip to content

Face Match API ​

Compare a source face with a target face. The API returns a boolean match decision and a numeric similarity score.

Access to this API is provided separately. Confirm that Face Match is enabled for your credentials before integrating it.

API endpoint ​

Use the regional base URL provided for your account:

  • https://api-us.idphotoapp.com — US region
  • https://api-eu.idphotoapp.com — EU region
http
POST /v2/faceMatch

Keep credentials and both image payloads on your server. Do not send an API secret from browser code or log complete Base64 images.

Request ​

FieldTypeRequiredDescription
apiKeystringYesAPI key with Face Match access.
apiSecretstringYesAPI secret paired with the key.
sourceImageBase64stringYesBase64-encoded reference image.
targetImageBase64stringYesBase64-encoded image to compare with the reference.
similarityThresholdnumberNoOptional match threshold. Omit it to use the service configuration for your integration.
json
{
  "apiKey": "your-api-key",
  "apiSecret": "your-api-secret",
  "sourceImageBase64": "data:image/jpeg;base64,...",
  "targetImageBase64": "data:image/jpeg;base64,..."
}

Response ​

json
{
  "isMatch": true,
  "similarity": 0.82
}
FieldTypeDescription
isMatchbooleanWhether the similarity met the threshold used for the request.
similaritynumberSimilarity score produced by the comparison. Interpret it together with the configured threshold.

Integration guidance ​

  • Use one clearly visible face in each image.
  • Avoid extreme pose, heavy blur, strong occlusion, or very small faces.
  • Do not compare scores produced by different services or assume they share the same scale.
  • If your workflow uses a custom threshold, validate it against representative images and the consequences of false matches and false rejections.
  • A match result is a technical comparison signal, not by itself a legal identity decision.
  • Handle authentication failures, invalid image data, missing faces, and timeouts separately from a valid non-match result.