Skip to main content
Version: 3.0.1

Create Person

POST

  https://api.apptenticate.com/api/v3/biometrics/recognizer/persons/



This request allows you to create a Person within the project assigned for the Recognizer service

Request data

To create a person, the service needs the following parameters in the body of the request:

FieldTypeDescription
citizen_idstringIdentity card or some unique identifier of the person
namestringPerson's name
imagefilePerson's selfie image. Any valid image format. Less than 2MB

Request example

Request
curl --location 'https://api.apptenticate.com/api/v3/biometrics/recognizer/persons/' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'citizen_id="<cédula>"' \
--form 'name="<nombre>"' \
--form 'image=@"<ruta_archivo>"' \

Response data

If the person is created successfully, the service will return a JSON object with the following structure:

FieldTypeDescription
idfileUnique identifier within Recognizer, this is the one that allows you to update or delete the person
citizen_idstringIdentity card or some unique identifier of the person
namestringPerson's name
imagestringPerson's image URL
is_blockedboolIndicates whether the person is blocked or not
created_atstringPerson's creation date
agreed_termsboolIndicates if the person accepted the Recognizer service terms and conditions

Example of successful response

status_code: 201
{
"id": 47662684,
"citizen_id": "<identity card>",
"name": "<name>",
"image": "<image_url>",
"is_blocked": false,
"created_at": "2023-11-13T10:20:46.865685-05:00",
"agreed_terms": false
}

Example of response with rejection

status_code: 400
{
"error": "There is already a registered person with that ID",
"error_code": 903
}

Rejection codes

If the request is not successful, a rejection code will be sent in the response. Possible rejection codes are:

CodeMessage
901Image too large. Maximum size allowed: 2MB
902There is no person registered with that identification
903There is already a person registered with that ID
904No faces detected in the image
905More than one face detected, only images with one face are allowed