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

Autenticação facial (obsoleto)

Face authentication

post

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.

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
peopleIdstringObrigatório

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

imageUrlstringOpcional

URL of the image to be validated.

Respostas
200

Success

application/json
requestIdstringObrigatório

Unique identifier of request.

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

Indicates whether the facial authentication has been approved.

Example: true
post/faces/authenticate
POST /faces/authenticate HTTP/1.1
Host: api.mobile.combateafraude.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 131

{
  "peopleId": "text",
  "imageUrl": "text",
  "device": {
    "operatingSystem": "text",
    "fingerprint": "text",
    "manufacturer": "text",
    "model": "text"
  }
}
{
  "requestId": "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53",
  "isMatch": true
}

Face authentication attempt

get

Get a face authentication attempt based on the provided attempt ID.

Parâmetros de rota
attemptIdstringOpcional

Authentication attempt ID

Example: xxxxxxf41e2fcd832e6xxxxx
Parâmetros de cabeçalho
AuthorizationstringObrigatório

Mobile API Authorization Token

Corpo
anyOpcional
Respostas
200

Authentication attempt success

application/json
requestIdstringOpcional

Request ID

Example: 86bb55c3-cecd-4643-95c7-188bb45a60a9
get/faces/authenticate/{attemptId}
GET /faces/authenticate/{attemptId} HTTP/1.1
Host: api.mobile.combateafraude.com
Authorization: text
Content-Type: application/json
Accept: */*
{
  "requestId": "86bb55c3-cecd-4643-95c7-188bb45a60a9",
  "data": {
    "id": "xxxxxxf41e2fcd832e6xxxxx",
    "createdAt": "2024-04-04T13:45:24.321Z",
    "peopleId": "00011122233",
    "sourceIp": "000.000.000.00",
    "executionOriginId": "xxxxxxd3a480530008xxxxxx",
    "registeredImageUrl": "https://xxx.s3.amazonaws.com/xxxxxxx",
    "receivedImageUrl": "https://xxx.s3.amazonaws.com/xxxxxxx",
    "faceMatch": {
      "similarity": 0.9999998474121093,
      "isFaceMatch": true
    },
    "liveness": {
      "probability": 1,
      "isAlive": true
    },
    "isMatch": true
  }
}

Atualizado