Enroll Face

To perform the user’s biometric face enrollment, the method to be used is Enroll Face. This process requires the upload containing a user’s face sample so it can perform the face enrollment. This sample, must contain only one face to be valid, and it must be a human face otherwise it will not be accepted as a suitable face sample. In case of success, the face will be enrolled on the biometric engine associated and the system will inform that the enrollment process is finished. In case of failure, this process shall be repeated until the enrollment is accepted.

Enroll Face

POST Https://api.biometrid.com/api/1.1/users/:userId/dialogue/enroll/face

Enroll user's face on client's chosen provider.

Path Parameters

Name
Type
Description

userID

string

BiometrID user ID

Headers

Name
Type
Description

Content-type

string

Request content type (This is not required to be set. Referenced only to show how we expect data to be sent). { "Content-Type": "multipart/form-data" }

x-biometrid-key

string

Application Client Key

x-biometrid-secret

string

Application Client Secret

Request Body

Name
Type
Description

livenessId

string

Liveness session identifier obtained from successful validation. Required if liveness is active for in Client configuration.

photo

object

Image file containing user's face for biometric analysis. File format: jpeg, png or jpg. Maximum file size 1 Mb.

HTTP/1.1 200 OK
//Face Enrolled
    {
      "status": true,
      "data": {
        "message": "FACE_ENROLLED_WITH_SUCCESS"
        "enrolled": true
      }
  }
// Face Enrolled Failed
  {
      "status": false,
      "data": {
          "message": "FACE_ENROLLMENT_FAILED",
          "reason": "No faces found on 'photo'"
        }
  }
//Face Already Detected
  {
    "status": false,
    "data": {
        "message": "FACE_ALREADY_DETECTED_ON_GALLERY",
        "detectedId": "5be3000bd3adgd3e152724f2",
        "confidence": 0.8,
        "alreadyExists": true
      }
}
Example (JSON)
{
    "photo": face.jpeg
    "livenessId": "d3213-23dds2-75rgu6-ds3434"
}

Last updated

Was this helpful?