Face Enrollment
Creates a new facial biometric template that can be used later for identity verification. This operation supports optional liveness and deepfake checks during enrollment.
Endpoint
POST https://cloud.ooto-ai.com/api/v1.0/addRequest 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 check (default: false)
check_deepfake
Boolean
No
Enable deepfake check (default: false)
Form Data
Field
Type
Required
Description
photo
File
Yes
JPEG or PNG image containing exactly one face
templateId
String
No
Optional custom ID for the face template
Authentication Headers
APP-ID: Your application's unique identifier.
APP-KEY: Your application's authentication key.
Example Request (cURL)
Replace «put_app_id_here», «put_app_key_here» with your actual credentials and the path to your selfie image.
Successful Response (HTTP 200)
Error response (HTTP 400)
Engine 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 sharp, high-quality, frontal-face photos
Face size ≥ 200×200 pixels in image
Avoid masks, sunglasses, filters
Only one face must be present in the image
Last updated