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
  • Document - Verify document photo
  • Success 200

Was this helpful?

  1. OCR Engine

Verify document photo

This endpoint allows the matching between the user selfie and the photo on the ID document simultaneously.

The IDCard photo sent in this request is provided at the response of the method Validate Document, so is necessary to store the photo temporarily to send it along with the uploaded photo sample taken at the moment.

Document - Verify document photo

POST https://api.biometrid.com/api/1.0/document/selfie-compare

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

photo1

object

Image file containing photo for biometric analysis. File format: jpeg, png or jpg. Maximum file size 1 Mb.

photo2

object

Image file containing photo for biometric analysis. File format: jpeg, png or jpg. Maximum file size 1 Mb.

liveness

boolean

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

HTTP/1.1 200 OK
//Selfie Commpare Process
{
    "status": true,
    "data": {
        "message": "FACE_COMPARED_WITH_SUCCESS",
        "verified": true,
        "confidence": "0.99"
        }
    }
}
//Selfie Compare Process Failed
{
    "status": false,
    "data": {
        "message": "FACE_COMPARISON_FAILED"
        }
    }
}
HTTP/1.1 400 Bad Request
//No photo files detected on request. Not sent or invalid format.
{
    "status": false,
    "data": {
        "message": "NO_FILES_OR_INVALID_FORMATS"
    }
}
//Missing photo files on request.
{
    "status": false,
    "data": {
        "message": "EXPECTING_2_IMAGE_FILES_TO_COMPARE"
    }
}
//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
{
    "status": false,
    "data": {
        "message": "CLIENT_NOT_FOUND/CHECK_AUTHENTICATION_HEADERS"
    }
}
HTTP/1.1 405 Method Not Allowed
{
    "status": false,
    "data": {
        "message": "NO_FACE_ENGINE_CONFIGURATION_AVAILABLE"
    }
}
HTTP/1.1 428 Precondition Required
{
    "status": false,
    "data": {
        "message": "NO_LIVENESS_DETECTION"
    }
}
Example (JSON)
{
    "photo1": photo1.jpeg,
    "photo2": photo2.jpeg,
    "livess": true
}

Success 200

Field

Type

Description

status

Boolean

Response status.

data

Object

Response main data.

message

String

Message regarding the selfie compare process.

verified

Boolean

Photos comparison result.

confidence

String

Photos comparison result confidence.

PreviousValidate Document (base64)NextVerify document photo (base64)

Last updated 6 years ago

Was this helpful?