Face Authentication
Face Authentication
Face Authentication is a biometric service that enables face registration and authentication through facial comparison. This resource provides endpoints to register faces for individuals and query facial authentication attempts.
Face Registration
The registration endpoint allows associating a facial image with a person identifier (personId), creating a biometric reference that will be used later for authentication.
Bearer token
Unique 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
Unsupported image format
Internal server error
POST /v1/faces HTTP/1.1
Host: api.combateafraude.com
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"
}Face Authentication Attempt Query
The query endpoint allows retrieving information about a specific facial authentication attempt, including URLs of the images used.
Unique identifier of the authentication attempt.
01K1XDD6W98M5QM9B8EAZZDV49Bearer token
Attempt found successfully
Unique identifier of request
bb1ce1fd-5d0d-42af-bb0e-16f56b230a20attemptId not provided
Invalid authentication token
Attempt not found
Internal server error
GET /v1/faces/attempts/{attemptId} HTTP/1.1
Host: api.combateafraude.com
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=...",
"isAlive": true,
"isMatch": true,
"similarity": 0.95
}
}Last updated

