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

Vivacidade facial (obsoleto)

Face liveness

post

It checks whether the uploaded photo is authentic, detecting if it is not a photo or video.

Parâmetros de consulta
shouldSignResponsebooleanOpcional

Specifies whether the request should be signed. The default is false. e.g. shouldSignResponse=true.

Default: false
Parâmetros de cabeçalho
AuthorizationstringObrigatório

Your access token. See more in the 'Authentication' topic of this section.

Corpo
imageUrlstringOpcional

URL of the image to be tested.

Respostas
200

Success

application/json
requestIdstringObrigatório

Unique identifier of request.

Example: 2b8f373-c462-4bbf-9a4f-8aeb7d71ec53
isAlivebooleanObrigatório

Indicates whether or not the person in the photo has passed the liveness.

Example: true
attemptIdstringObrigatório

Identifier of the attempt.

Example: 6021a21b3811c35ecb8dea20
messagestringOpcional

Reproval reason. Possible messages are 'Sua foto deve conter apenas um rosto', 'Seu rosto está muito próximo da câmera', 'Não encontramos nenhum rosto na imagem', 'Seu rosto está muito pequeno' or 'Seu rosto não está alinhado à câmera'.

post/faces/liveness
POST /faces/liveness HTTP/1.1
Host: api.mobile.combateafraude.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "imageUrl": "text",
  "person": {
    "cpf": "text",
    "name": "text"
  }
}
{
  "requestId": "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53",
  "isAlive": true,
  "attemptId": "6021a21b3811c35ecb8dea20",
  "person": {
    "cpf": "00011122233",
    "name": "John Doe"
  },
  "message": null
}

Atualizado