ScreenlyyIDDocs
Docs › API reference › Identity verification

Face match

Takes two base64-encoded images and compares their likeness. It works for headshot photos only, and returns a score out of 100 plus a pass or fail IsMatch based on a threshold.

POSThttps://api.screenlyyid.com/api/v1/facematch

Headers#

NameTypeRequiredDescription
x-api-keystringYesYour ScreenlyyID API key
x-correlation-idstring (uuid)YesCorrelation ID for this customer check

Request body#

FieldTypeRequiredDescription
SettingsobjectNo
Settings.SubscriptionIdstringNo
DataobjectNo
Data.ImageOnestringNo
Data.ImageTwostringNo

Responses#

StatusDescription
200Successful response

Code samples#

curl --request POST \
  --url 'https://api.screenlyyid.com/api/v1/facematch' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'x-correlation-id: YOUR_CORRELATION_ID' \
  --header 'Content-Type: application/json' \
  --data '{
  "Settings": {
    "SubscriptionId": "<SubscriptionId>"
  },
  "Data": {
    "ImageOne": "<base64-encoded image>",
    "ImageTwo": "<base64-encoded image>"
  }
}'