Registro facial (obsoleto)
Não oferece suporte à assinatura da resposta. Além disso, apenas imagens nos formatos JPEG, PNG e BMP são aceitas.
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.
Parâmetros de cabeçalho
AuthorizationstringObrigatório
Your access token. See more in the 'Authentication' topic of this section.
Corpo
peopleIdstringObrigatórioExample:
CPF of the user present in the image.
00011122233imageUrlstringObrigatórioExample:
URL of the image containing the user's face
https://images.generated.photos/DQ4EKrAPT-e5slG3cXmSw20uJ2AwwhOzJeVnpI9tlMA/rs:fit:512:512/Z3M6Ly9nZW5lcmF0/ZWQtcGhvdG9zLzA5/OTk4MDcuanBn.jpgRespostas
200
Success
application/json
requestIdstringObrigatórioExample:
Unique identifier of request.
2b8f373-c462-4bbf-9a4f-8aeb7d71ec53messagestringObrigatórioExample:
Return message from the action.
Ação realizada com sucesso.400
The access token has not been entered
401
The token used is not valid for this product
405
HTTP method not allowed
500
Internal server error
post/faces/register
POST /faces/register HTTP/1.1
Host: api.mobile.combateafraude.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"peopleId": "00011122233",
"imageUrl": "https://images.generated.photos/DQ4EKrAPT-e5slG3cXmSw20uJ2AwwhOzJeVnpI9tlMA/rs:fit:512:512/Z3M6Ly9nZW5lcmF0/ZWQtcGhvdG9zLzA5/OTk4MDcuanBn.jpg"
}{
"requestId": "2b8f373-c462-4bbf-9a4f-8aeb7d71ec53",
"message": "Ação realizada com sucesso."
}Atualizado

