Face authentication

Supports response signature.

Face authentication

It performs facial authentication, i.e., it checks if the face that is in the photo sent is the same as the one linked to the CPF in our base.

POSThttps://api.mobile.combateafraude.com/faces/authenticate
Query parameters
Header parameters
Body
peopleId*string

CPF of the user you want to authenticate (only numbers).

imageUrlstring

URL of the image to be validated.

deviceobject

Basic information of the device being used to authenticate.

Response

Success

Body
requestId*string

Unique identifier of request.

Example: "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53"
isMatch*boolean

Indicates whether the facial authentication has been approved.

Example: true
Request
const response = await fetch('https://api.mobile.combateafraude.com/faces/authenticate', {
    method: 'POST',
    headers: {
      "Authorization": "text",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "peopleId": "text"
    }),
});
const data = await response.json();
Response
{
  "requestId": "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53",
  "isMatch": true
}

Last updated

Logo

2023 © Caf. - All rights reserved