Skip to main content

Get Identity State V1

Endpoint que retorna la información de una persona ingresando su dni, además del dispositivo que tenga asociado (si es que lo tiene) y su sim (si es que tiene).

Endpoint

Headers

KeyValueDescription
Content-Typeapplication/json
AuthorizationBearer {{access_token}}access_token obtained in Atenea

Endpoint:

Method: GET
URL: https://api.trust.lat/identification/api/v1/identity/state/:dni
caution

Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea

Como obtener un access token

Code Examples

curl --location --request GET 'https://api.trust.lat/identification/api/v1/identity/state/:dni' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{accessToken}}'

Responses

HTTP Code: 201 Created

{
"status": true,
"identity": {
"id": 2,
"dni": "19319733-1",
"name": "Felipe",
"lastname": "Perez",
"email": "fperez@trust.lat",
"phone": "+56923454417",
"created_at": "2019-05-04T02:30:14.108Z",
"updated_at": "2021-01-30T02:12:02.547Z",
"status": true,
"uuid": "xb0b8e62-a911-4a6b-aa31-87f751q13db",
"apple_users_id": []
},
"device": {
"id": 2172,
"trust_id": "2ddvbede-1e22-459b-ab53-3675742aa6f",
"characteristics": {
"id": "RQ1A.210105.003",
"nfc": "YES",
"UUID": "823f3b0-ffe5-425f-9553-f26dfa520ea",
"host": "abfarm789",
"imei": "",
"root": "No Rooted",
"board": "coral",
"brand": "google",
"model": "Pixel 4 XL",
"device": "coral",
"serial": "unknown",
"bluetooth_mac": "02:00:00:00:00:00",
"system_version": "30",
"software_version": "32",
"android_device_id": "956cda27f35caeea",
"battery_technology": "Li-ion",
"processor_bogomips": "38.00",
"processor_features": "fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp",
"processor_hardware": "Qualcomm Technologies, Inc SM8150",
"processor_quantity": "8",
"processor_revision": "",
"processor_model_name": "",
"processor_msm_hardware": "",
"google_service_framework_gsf": "328F3FEFB2FFCF5B"
},
"created_at": "2021-01-30T02:11:37.074Z",
"updated_at": "2021-01-30T02:11:37.074Z",
"status": true,
"trust_id_type": "classic_trust_id"
},
"sim": {
"id": 2172,
"trust_id": "1d8dqede-1e22-459b-ab53-36475742a6f",
"characteristics": {
"id": "RQ1A.210105.003",
"nfc": "YES",
"UUID": "8234f3a0-ffe5-425f-9553-f26dfa5220ea",
"host": "abfarm789",
"imei": "",
"root": "No Rooted",
"battery": "Presente",
"cameras": [],
"display": "RQ1A.210105.003",
"product": "coral",
"cpu_part": "0x805",
"emulator": false,
"hardware": "coral",
"mem_total": "",
"wlan0_mac": "72:5A:27:77:A7:AE",
"swap_total": "SwapTotal",
"sensor_size": "35",
"system_name": "Android",
"processor_revision": "",
"processor_model_name": "",
"processor_msm_hardware": "",
"google_service_framework_gsf": "38F3FEFB2FFCF5B"
},
"created_at": "2021-01-30T02:11:37.074Z",
"updated_at": "2021-01-30T02:11:37.074Z",
"status": true,
"trust_id_type": "classic_trust_id"
}
}


HTTP Code: 204 Not Content

Cuando el endpoint no encuentre resultados enviará un código 204 indicando que no hubo éxito en la búsqueda.