Autenticação facial
Autenticação Facial é um serviço biométrico que permite o registro facial e a autenticação por meio de comparação facial. Este recurso disponibiliza endpoints para registrar faces de pessoas e consultar tentativas de autenticação facial.
Registro Facial
O endpoint de registro permite associar uma imagem facial a um identificador de pessoa (personId), criando uma referência biométrica que será usada posteriormente para autenticação.
Register a facial image for a person identifier, creating a biometric reference for future authentication.
Permission required: Create Face Authentication
Your access token. See more in the 'Authentication' topic of this section.
Bearer YOUR_TOKENUnique person identifier (CPF, external ID, etc). Must be between 5 and 254 characters and contain only letters, numbers and special characters "@", ".", "_", "-". If personId contains only numbers and the symbols ".", "-", "/", these special characters are removed, as the value is interpreted as a document mask.
12345678901URL of the facial image to be registered. Must be a valid and accessible .jpg or .png URL
https://example.com/face-image.pngFace registered successfully
Unique identifier of request
bb1ce1fd-5d0d-42af-bb0e-16f56b230a20Status message
Face registration in progressPerson identifier
12345678901Invalid request data
Invalid authentication token
The token does not have permission to access this resource
Unsupported image format
Internal server error
POST /v1/faces/ HTTP/1.1
Host: api.us.prd.caf.io
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"personId": "12345678901",
"imageUrl": "https://example.com/face-image.png"
}{
"requestId": "bb1ce1fd-5d0d-42af-bb0e-16f56b230a20",
"message": "Face registration in progress",
"personId": "12345678901"
}Consulta de Tentativa de Autenticação Facial
O endpoint de consulta permite recuperar informações sobre uma tentativa específica de autenticação facial, incluindo as URLs das imagens usadas.
Retrieve information about a specific facial authentication attempt, including URLs of the images used.
Permission required: Read Face Authentication Attempts
Unique identifier of the authentication attempt.
01K1XDD6W98M5QM9B8EAZZDV49Your access token. See more in the 'Authentication' topic of this section.
Bearer YOUR_TOKENAttempt found successfully
Unique identifier of request
bb1ce1fd-5d0d-42af-bb0e-16f56b230a20attemptId not provided
Invalid authentication token
The token does not have permission to access this resource
Attempt not found
Internal server error
GET /v1/faces/attempts/{attemptId} HTTP/1.1
Host: api.us.prd.caf.io
Authorization: text
Accept: */*
{
"requestId": "bb1ce1fd-5d0d-42af-bb0e-16f56b230a20",
"data": {
"id": "01K1XDD6W98M5QM9B8EAZZDV49",
"createdAt": "2025-07-15T10:30:00.000Z",
"personId": "12345678901",
"sourceIp": "192.168.1.100",
"registeredFaceImageUrl": "https://s3.amazonaws.com/bucket/registered-face.jpg?signature=...",
"capturedFaceImageUrl": "https://s3.amazonaws.com/bucket/captured-face.jpg?signature=...",
"isMatch": true,
"similarity": 0.95
}
}Atualizado

