For the complete documentation index, see llms.txt. This page is also available as Markdown.

/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

idTransaccionstringRequired

Unique identifier associated with the transaction being processed.

Example: idTx
Responses
200

The authentication result.

application/json

Result of the photo comparison

codigonumber · enumOptional

Operation error codes.

Example: 0Possible values:
scoreinteger · max: 1Optional

Score resulting from the comparison.

Example: 1
resultadonumber · max: 100Optional

Similarity resulting from the comparison.

Example: 99
tiempoServiciointegerOptional

Total time in milliseconds from when the request arrives until the response is sent.

Example: 492
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