Skip to main content
POST
Compare two faces (v1)
Upload a selfie as image1 and the document photo as image2 (or pass its URL in image2_url). idto compares the two faces. This is a v1 endpoint: the response is a flat object, not the v2 envelope, and there is no billed field.
For new integrations use Face match. It gives you idempotent retries, a billed flag and one error format. See Migrate from v1.

Environments

Billing

Charged only when the response status is success, whether or not the faces match. A charged response carries chargeble and user_consent, both the string "true", spelled exactly as shown. An error response is never charged.
This endpoint has no Idempotency-Key support. A retried call runs again and can be charged twice. Retry only after you have confirmed the first call failed.

Request

How to read the result

  • status: "success": the comparison ran and is charged, match or not.
  • On most accounts the body carries is_match (the decision), match (0 to 100), match_score (0 to 1), blur flags for each image (is_person_image_blurry, is_card_image_blurry) and whether a face was found in each (person_image_correctly_identified, card_image_correctly_identified).
  • Ask for a new capture when a blur flag is true or a face was not found, rather than trusting is_match.
More than one face source can serve this endpoint. Only status, tranx_id and timestamp are present whichever source answered; on some accounts the result arrives in a data object instead of the top-level keys above. Read every other key defensively.

Errors

Every wrapped detail object also carries tranx_id and timestamp.

Test scenarios

Questions about this product are answered in the Face and Liveness FAQ. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Body

multipart/form-data
image1
file
required

Selfie of the person.

image2
file

Document photo to compare against.

image2_url
string

URL of the document photo, instead of uploading image2.

workflow_session_token
string

Pass only when the call is part of an idto workflow session.

Response

The comparison completed. Charged.

status
string
required
tranx_id
string
required

idto transaction id for this call.

timestamp
string
required
message
string
is_match
boolean
match
number
match_score
number
is_person_image_blurry
boolean
is_card_image_blurry
boolean
person_image_correctly_identified
boolean
card_image_correctly_identified
boolean
client_ref_id
string
request_id
string
chargeble
enum<string>

Present and "true" only when the call was charged.

Available options:
true

Present and "true" only when the call was charged.

Available options:
true
Last modified on December 1, 2026