Verify
Compare two images instantly to verify identity
Endpoint
POST https://cloud.ooto-ai.com/api/v1.0/verifyRequest Format
Method: POST
Content-Type: multipart/form-data
Query Parameters: check_liveness, check_deepfake
Query Parameters
Name
Type
Required
Description
check_liveness
Boolean
No
Enable liveness detection
check_deepfake
Boolean
No
Enable deepfake detection
Authentication Headers
To access the API, you need to include the following headers in your request:
APP-ID: Your application's unique identifier.
APP-KEY: Your application's authentication key.
Form Data
Field
Type
Required
Description
first_selfie
File
Yes
User selfie (JPEG or PNG)
second_selfie
File
Yes
User selfie (JPEG or PNG)
Example Request (cURL)
Replace «app_id», «app_key» with your actual credentials and the path to your doc image.
Successful Response (HTTP 200)
Field Explanation
templateId
ID of the most similar template found in the database
similarity
Cosine similarity between input and matched template
firstFace.liveness and secondFace.liveness
Returned if check_liveness=true
firstFace.deepfake and secondFace.deepfake
Returned if check_deepfake=true
firstFace
First face detection details
secondFace
Second face detection details
Error response (HTTP 400)
Engine & OCR Errors
Code
Info
1
photo should not be empty
2
wrong mime-type in input data
3
photo size is 0 bytes
4
can not decode image, check it is valid jpeg or png file
5
can not detect face
6
more than one face detected on photo
9
can not extract features from sample, probably it is too small
Best Practices
Use high-quality, well-lit, frontal photos
Make sure there’s only one visible face
Use check_liveness in environments with higher spoofing risk
Typical similarity threshold for a valid match: ≥ 0.75
Last updated