Legacy Restful API
1.0.0
1.0.0
  • Introduction
  • Biometric Engines
  • Getting Started
  • User
    • Create User
    • Delete User
  • Face Engine
    • Enroll Face
    • Verify Face
    • Adapt Face
    • Delete User Face Enroll
    • Find User Id by Face
    • Find Multiple Id by Face
    • Find Face Properties
  • Liveness
    • Biometrics Status
    • Biometrics Liveness
  • Voice Engine
    • Enroll Voice
    • Verify Voice
    • Adapt Voice
    • Delete User Voice Enroll
    • Get Available Languages
  • OCR Engine
    • Validate Document
    • Validate Document (base64)
    • Verify document photo
    • Verify document photo (base64)
  • Auxiliar Methods
    • Get enroll Status
    • Has Pending Dialogue
    • Restart User State
    • Find UserId by MacAddress
Powered by GitBook
On this page

Was this helpful?

  1. Face Engine

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.0/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

liveness

boolean

Optional liveness state flag. For now, just implemented on the biometrid SDK.

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
      }
}
HTTP/1.1 400 Bad Request
//No photo file detected on request. Not sent or invalid format
    {
        "status": false,
        "data": {
            "message": "NO_FILE_OR_INVALID_FORMAT"
        }
    }
//User Face Already Enrolled
 {
    "status": false,
    "data": {
        "message": "USER_FACE_ALREADY_ENROLLED"
    }
}
// Missing Headers
 {
    "status": false,
    "data": {
        "message": "AUTHENTICATION_HEADERS_MISSING"
    }
}
HTTP/1.1 401 Unauthorized
{
    "status": false,
    "data": {
        "message": "INVALID_AUTHENTICATION_HEADERS"
    }
}
HTTP/1.1 402 Payment Required
{
    "status": false,
    "data": {
        "message": "REQUEST_LIMIT_REACHED"
    }
}
HTTP/1.1 404 Not Found
// No active engine configuration for this provider.
    {
        "status": false,
        "data": {
            "message": "NO_FACE_ENGINE_CONFIGURATION_AVAILABLE"
        }
    }
 // User's id not exists in biometrid environment.
    {
        "status": false,
        "data": {
            "message": "USERID_NOT_EXISTS"
        }
    }
//Client not found by given key.
    {
        "status": false,
        "data": {
            "message": "CLIENT_NOT_FOUND/CHECK_AUTHENTICATION_HEADERS"
        }
    }
 
Example (JSON)
{
    "photo": face.jpeg
    "liveness": true
}

PreviousDelete UserNextVerify Face

Last updated 6 years ago

Was this helpful?