Face registration

Does not support response signature. Additionally, only images in JPEG, PNG, and BMP formats are accepted.

Face registration

The faces registered in this service are used to perform facial authentication. Use this endpoint to link a face to a CPF in our database.

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

CPF of the user present in the image.

Example: "00011122233"
imageUrl*string

URL of the image containing the user's face

Example: "https://images.generated.photos/DQ4EKrAPT-e5slG3cXmSw20uJ2AwwhOzJeVnpI9tlMA/rs:fit:512:512/Z3M6Ly9nZW5lcmF0/ZWQtcGhvdG9zLzA5/OTk4MDcuanBn.jpg"
Response

Success

Body
requestId*string

Unique identifier of request.

Example: "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53"
message*string

Return message from the action.

Example: "Ação realizada com sucesso."
Request
const response = await fetch('https://api.mobile.combateafraude.com/faces/register', {
    method: 'POST',
    headers: {
      "Authorization": "text",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "peopleId": "00011122233",
      "imageUrl": "https://images.generated.photos/DQ4EKrAPT-e5slG3cXmSw20uJ2AwwhOzJeVnpI9tlMA/rs:fit:512:512/Z3M6Ly9nZW5lcmF0/ZWQtcGhvdG9zLzA5/OTk4MDcuanBn.jpg"
    }),
});
const data = await response.json();
Response
{
  "requestId": "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53",
  "message": "Ação realizada com sucesso."
}

Last updated

Logo

2023 © Caf. - All rights reserved