Search Audit by query
Endpoint encargado de buscar auditorías de aplicaciones pero con un grado de búsqueda más específico. Se puede consultar por varios campos de la auditoría como por campos de los objetos embebidos dentro de esta misma. El endpoint cuenta con paginado y filtrado de campos a mostrar en las respuestas.
Campos permitidos para buscar
application
audit_slug
created_at
extra_data
location
platform
type_audit
Source
source.app_name
source.bundle_id
source.connection_name
source.connection_type
source.device_name
source.imsi
source.latGeo
source.lonGeo
source.os
source.os_version
source.trust_id
Transaction
transaction.method
transaction.operation
transaction.result
transaction.timestamp
Endpoint
Headers
Key | Value | Description |
---|---|---|
Content-Type | application/json | |
Authorization | Bearer {{access_token}} | access_token obtained in Atenea |
Method: GET
URL: https://api.trust.lat/audit/api/v1/audit/search?page=1&per_page=3&fields=application, source
URL Variables
Key | Value | Description |
---|---|---|
page | positive number | Página de los registros a visualizar |
per_page | posivite number | Cantidad de registros a visualizar por página |
fields | name of fields | Campos a mostrar por registro. El campo "application" es obligatorio |
caution
Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea
Body Example
{
"transaction.type": "audit_custom"
}
El endpoint no soporta array de valores por campo.
Code Examples
- Curl
- JavaScript
- Python
curl --location --request POST 'https://api.trust.lat/audit/api/v1/audit/search?page=1&per_page=10&fields=application, source' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer BkNCZLE6CdX33yd5...' \
--data-raw '{
"transaction.type": "audit_custom"
}'
import requests
url = "https://api.trust.lat/audit/api/v1/audit/search?page=1&per_page=10&fields=application, source"
payload="{ \n \"transaction.type\": \"audit_custom\"\n}"
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer BkNCZLE6CdX33yd5...'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
var axios = require('axios');
var data = JSON.stringify({"transaction.type":"audit_custom"});
var config = {
method: 'post',
url: 'https://api.trust.lat/audit/api/v1/audit/search?page=1&per_page=10&fields=application, source',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer BkNCZLE6CdX33yd5...'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Responses
HTTP CODE: 200 Found
{
"status": true,
"message": "Found",
"audit": [
{
"application": "App",
"source": {
"app_name": "App",
"bundle_id": "com.app",
"carrier": "entel",
"connection_name": "<unknown ssid>",
"connection_type": "MOBILE",
"device_name": "SM-T395",
"emulator": false,
"imsi": "73001112153710",
"latGeo": "-33.04355316795409",
"lonGeo": "-71.389833307875013",
"os": "Android",
"os_version": "28",
"sdk_version": {
"sdk_audit": "1.0.28",
"sdk_diagnostic": "",
"sdk_identify": "2.0.31",
"sdk_lock": "",
"sdk_signal": ""
},
"trust_id": "999-9999-99999-9999-9-9999",
"version_app": "1.5.1",
"version_code": "99",
"app_id": "99"
}
},
{
"application": "App",
"source": {
"app_name": "App",
"bundle_id": "com.app",
"carrier": "entel",
"connection_name": "<unknown ssid>",
"connection_type": "MOBILE",
"device_name": "SM-T395",
"emulator": false,
"imsi": "73001116323710",
"latGeo": "-33.56355316795409",
"lonGeo": "-71.4483707875013",
"os": "Android",
"os_version": "28",
"sdk_version": {
"sdk_audit": "1.0.28",
"sdk_diagnostic": "",
"sdk_identify": "2.0.31",
"sdk_lock": "",
"sdk_signal": ""
},
"trust_id": "9999-99999-999-999-999-999",
"version_app": "1.5.1",
"version_code": "99",
"app_id": "99"
}
},
{
"application": "App 2",
"source": {
"app_name": "App 2",
"bundle_id": "com.app_2",
"carrier": "Claro",
"connection_name": "Familia Rivero 5G",
"connection_type": "WIFI",
"device_name": "SM-A505G",
"emulator": false,
"flavor_id": "com.app_2",
"imsi": "sim extraida",
"latGeo": "-33.3456269519925",
"lonGeo": "-70.72094288511238",
"os": "Android",
"os_version": "30",
"sdk_version": {
"sdk_audit": "1.0.27",
"sdk_diagnostic": "",
"sdk_identify": "2.1.34",
"sdk_lock": "2.1.36",
"sdk_signal": ""
},
"trust_id": "f7c9s55-808b-491f-9adc-67e6e3j1ba5c",
"version_app": "2.0.11",
"version_code": "99",
"app_id": "9"
}
}
],
"page": 1,
"per_page": 3,
"total": 763068
}
HTTP CODE: 200 Not found
{
"status": true,
"message": "Found",
"audit": [],
"page": 1,
"per_page": 3,
"total": 1
}