Get Person
https://api.apptenticate.com/api/v3.2/biometrics/recognizer/persons/<id>/
This operation allows obtaining the information of a Person within the project assigned to the Recognizer service
Request parameters
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier within Recognizer, this is the one that allows you to obtain, update or delete the person. Do not confuse with citizen_id |
Request example
- Shell
- Node
- Python
Request
curl --location 'https://api.apptenticate.com/api/v3.2/biometrics/recognizer/persons/<id>/' \
--header 'Authorization: Bearer <jwt_token>' \
Installation
npm install axios
Request
const axios = require('axios')
let config = {
method: 'get',
url: 'https://api.apptenticate.com/api/v3.2/biometrics/recognizer/persons/<id>/',
headers: {
Authorization: 'Bearer <jwt_token>'
}
}
axios
.request(config)
.then((response) => {
console.log(JSON.stringify(response.data))
})
.catch((error) => {
console.log(error)
})
Installation
python -m pip install requests
Request
import requests
url = "https://api.apptenticate.com/api/v3.2/biometrics/recognizer/persons/<id>/"
headers = {
'Authorization': 'Bearer <jwt_token>'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
Response data
If the person exists, the service will return a JSON object with the following structure:
| Field | Type | Description |
|---|---|---|
| id | file | Unique identifier within Recognizer, this is the one that allows you to update or delete the person |
| citizen_id | string | Identity card or some unique identifier of the person |
| name | string | Person's name |
| image | string | Person's image URL |
| is_blocked | bool | Indicates whether the person is blocked or not |
| created_at | string | Person's creation date |
| agreed_terms | bool | Indicates 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
json title="status_code: 404 Not Found"