Biometric Engine - API
System Information#
Get Logs#
GET {bioengine_url}/logs
Gets all biometric and plugin troubleshooting logs in a zip file.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Return Type
String
Example Request
Produces
This API call produces the following media types according to the Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Returned biometric logs zip file String.
500 Error obtaining biometric logs zip file String.
Get Template Types#
GET {bioengine_url}/template-types
Gets all system-installed biometric matchers
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to the Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Returning Template Types TemplateTypeResponse
500 Error obtaining Template Types BioEngineError
Template Management#
Enroll Biometric samples#
POST {bioengine_url}/persons/{personid}/biometrics
Enrolls one or more biometric samples as a biometric template or directly enrolls a template. Either a list of samples, or a template must be provided.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
Consumes
This API call consumes the following media types via the Content-Type request header:
Request Body
- body BiometricEnrollRequest (required)
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to Accept request header; the media type will be conveyed by the Content-Type response header.
Responses
201 Template created and enrolled BiometricEnrollResponse BiometricInfoResponse
400 Bad request BioEngineError
500 Enrollment error BioEngineError
Create Biometric Template#
POST {bioengine_url}/biometrics
Creates templates from one or more biometric samples or directly enroll a template. The template type is specified as a combination of a BioType, and a Biometric Plugin name.
A list of supported Template types can be obtained with the "Get Template Types" request.
A list of samples must be provided.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Consumes
This API call consumes the following media types via the Content-Type request header:
Request Body
- body BiometricCreateRequest (required)
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to Accept request header; the media type will be conveyed by the Content-Type response header.
Responses
201 Template created and returned BiometricCreateResponse (api.md#biometriccreateresponse)
400 Bad request BioEngineError
500 Create Template error BioEngineError
Get Person Details#
GET {bioengine_url}/persons/{personid}/biometrics
Gets the details for all enrolled biometric templates for a person.
note
If there are no templates for the given criteria found, 200 OK returned as a result but with an empty array.#
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to the Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Returning template information BiometricInfoResponse
500 Error obtaining biometric template information BioEngineError
Get Template Details#
GET {bioengine_url}/persons/{personid}/biometrics/{templatetype}
Gets the details about all enrolled biometric templates of the specified Template Type for a person.
note
If there are no templates for the given criteria found, 200 OK returned as a result but with an empty array.#
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
- templatetype (required)
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to the Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Returning template information BiometricInfoResponse
500 Error obtaining biometric template information BioEngineError
Delete Biometrics#
DELETE {bioengine_url}/persons/{personid}/biometrics
Deletes all enrolled biometric templates for a person. 200 OK returned even if there were no templates to delete.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
Example Request
Produces
This API call produces the following media types according to the Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Template(s) deleted
500 Error deleting biometric templates BioEngineError
Delete Template#
DELETE {bioengine_url}/persons/{personid}/biometrics/{templatetype}/{templatecontext}
Deletes the enrolled biometric template of the specified Template Type and Template Context for a person. 200 OK returned even if there was no template to delete.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
- templatetype (required)
- templatecontext (required)
Example Request
Produces
This API call produces the following media types according to Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Template deleted
500 Error deleting biometric template BioEngineError
Delete All Templates#
DELETE {bioengine_url}/persons/{personid}/biometrics/{templatetype}
Deletes all enrolled biometric templates of the specified Template Type for a person. 200 OK returned even if there were no templates to delete.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
- templatetype (required)
Example Request
Produces
This API call produces the following media types according to Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Template(s) deleted
500 Error deleting biometric templates BioEngineError
Matching#
Identify#
POST {bioengine_url}/identify
Performs fast identification searches (1:N) against biometric templates pre-loaded into a cache based on multiple biometric samples and/or templates. If identification fails for a specific biometric sample or template, error details are returned along with the return code "200 OK". If templates are missing, empty placeholders will be returned in their place.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Consumes
This API call consumes the following media types via the Content-Type request header:
Request Body
body IdentifyRequest (required)
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Returning identification results IdentifyResponse
400 Bad request BioEngineError
500 Error obtaining identification results BioEngineError
Verify#
POST {bioengine_url}/persons/{personid}/verify
Performs verification of multiple biometric samples and/or templates against a person's enrolled templates. If individual verifications fail, error details are returned along with the return code "200 OK". If templates are missing, empty placeholders will be returned in their place.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
- personid (required)
Consumes
This API call consumes the following media types via the Content-Type request header:
Request Body
- body VerifyRequest (required)
Return Type
Example Request
Example Response
Content-Type: application/json
Produces
This API call produces the following media types according to Accept request header (the media type will be conveyed by the Content-Type response header).
Responses
200 Returning verification results VerifyResponse
400 Bad request BioEngineError
500 Error obtaining verification results BioEngineError
Face Match#
Simple Face Match#
POST {bioengine_url}/match
Performs a biometric match comparison between two faces images using Imageware's patented algorithms and returns a pass or fail flag and confidence score: PASS โฅ 48.
The request MUST contain two image files uploaded as multipart/form-data
Image Requirements
Attached image files must adhere to the following parameters:
- Format: JPG / JPEG or PNG
- Dimensions: Minimum 150x150; Maximum 1024x1024px
- File size: Maximum 2MB
Example Request
Example Response
Produces
This API call produces the following media types according to the Accept request header (the media type will be conveyed by the Content-Type response header).
- application/json
Response Codes
200 Returning match score FaceMatchResponse
400 Bad request BioEngineError
500 Error performing match BioEngineError
Cache Management#
Create Cache for All Plugins#
POST {bioengine_url}/createcache
Recreates cache files from a database for installed plugins.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Example Request
Example Response
Response Codes
201 Empty body
400 Bad request BioEngineError
500 Error BioEngineError
Create Cache for a Specific Plugin#
POST {bioengine_url}/createplugincache/{pluginName}
Recreates a cache file from a database for a specific plugin.
The request MUST include an Authorization header type Bearer Token where the token is a valid JWT.
Path Parameters
pluginName (required)
Example Request
Example Response
Response Codes
201 Empty Body
400 Bad request BioEngineError
500 Error BioEngineError
Models#
- BioEngineError
- BiometricEnrollRequest
- BiometricEnrollResponse
- BiometricInfo
- BiometricInfoResponse
- FaceMatchResponse
- IdentifyInput
- IdentifyRequest
- IdentifyResponse
- MatchResult
- MatchResults
- TemplateTypeInfo
- TemplateTypeResponse
- VerifyInput
- VerifyRequest
- VerifyResponse
- match_body
- BiometricCreateRequest
- BiometricCreateResponse
BioEngineError#
code Integer format: int32
message String
BiometricEnrollRequest#
templateType String
templateContext String
samples (optional) array[String]
template (optional) String
BiometricEnrollResponse#
- quality Float format: float
BiometricInfo#
templateType String
templateContext String
size Integer format: int32
timestamp Long format: int64
BiometricInfoResponse#
- biometricInfos array[BiometricInfo]
FaceMatchResponse#
Status (optional) String
Pass (optional) Boolean
Score (optional) Float format: float
DurationMS (optional) Integer format: int32
status String
score Float format: float
pass Boolean
durationMS Integer format: int32
IdentifyInput#
templateType String
sample (optional) String
template (optional) String
thresholdValue (optional) Float format: float
maxResults (optional) Integer format: int32
IdentifyRequest#
- identifyInputs array[IdentifyInput]
IdentifyResponse#
- allIdentifyResults array[IdentifyResults]
IdentifyResult#
targetId Integer format: int32
templateType String
totalDurationMS Integer format: int32
identifyMatchResults array[IdentifyMatchResult]
errorCode (optional) Integer format: int32
errorMessage (optional) String
IdentifyResults#
- identifyResults array[IdentifyResult]
IdentifyMatchResult#
personId (optional) String
personUUID (optional) String
score (optional) Float format: float
errorCode (optional) Integer format: int32
errorMessage (optional) String
MatchResult#
personId (optional) String
score (optional) Float format: float
errorCode (optional) Integer format: int32
errorMessage (optional) String
MatchResults#
- matchResults array[MatchResult]
TemplateTypeInfo#
templateType String
scoreThreshold Float format: float
numSamplesForEnroll Integer format: int32
isInstantiated Boolean
TemplateTypeResponse#
- templateTypes array[TemplateTypeInfo]
VerifyInput#
templateType String
sample (optional) String
template (optional) String
thresholdValue (optional) Float format: float
VerifyRequest#
- verifyInputs array[VerifyInput]
VerifyResponse#
- allMatchResults array[MatchResults]
match_body#
Image1 (optional) byte[] format: binary
Image2 (optional) byte[] format: binary
BiometricCreateRequest#
templateType String
samples array[String]
BiometricCreateResponse#
quality Float format: float
templatedata String