/api/v1/facial/authentication
This endpoint is used to authenticate two photo images.
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Authentication request body
idTransaccionstringRequiredExample:
Unique identifier associated with the transaction being processed.
idTxResponses
200
The authentication result.
application/json
Result of the photo comparison
codigonumber · enumOptionalExample:
Operation error codes.
0Possible values: scoreinteger · max: 1OptionalExample:
Score resulting from the comparison.
1resultadonumber · max: 100OptionalExample:
Similarity resulting from the comparison.
99tiempoServiciointegerOptionalExample:
Total time in milliseconds from when the request arrives until the response is sent.
492400
The request contains incorrect parameters.
application/json
401
The JWT authentication token is missing or invalid.
application/json
500
An error occurred in the call to the SDK backend.
application/json
post/api/v1/facial/authentication
POST /api/v1/facial/authentication HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 142
{
"idTransaccion": "idTx",
"fotoA": {
"tipo": 0,
"data": "/9j/4AAQSkZJRgABAQEAtAC0AAD..."
},
"fotoB": {
"tipo": 0,
"data": "/9j/4AAQSkZJRgABAQEAtAC0AAD..."
}
}{
"codigo": 0,
"score": 1,
"resultado": 99,
"tiempoServicio": 492
}Last updated