Aller au contenu

Eventi

Ce contenu n’est pas encore disponible dans votre langue.

Eventi della flotta dell’owner della chiave (ingresso/uscita da un’area, accensione, sosta, allarmi…). Permesso: read_events.

Parametro Default Note
type — filtro per tipo evento — vedi sotto per i valori delle geofence
device — filtro per IMEI
from / to — finestra temporale, ISO 8601
limit 50 1–200
offset 0

Per gli eventi di geofence, type accetta:

Valore Cosa filtra
geofence tutti gli eventi di geofence (ingressi e uscite)
geofence_enter / geofence_entry solo gli ingressi
geofence_exit solo le uscite

geofence_enter/geofence_entry/geofence_exit sono alias che filtrano sullo stesso evento geofence, distinguendo ingresso da uscita.

Finestra del terminale
curl -H "X-API-Key: $AITRACK_API_KEY" \
"https://api.aitrack.it/api/v3/events?type=geofence_enter&limit=50"
{
"data": [
{
"id": 5521,
"type": "geofence",
"message": "Furgone 1 è entrato in Magazzino",
"device_imei": "352093081452312",
"data": { "areaId": 12, "event": "entry" },
"read": false,
"occurred_at": "2026-07-14T08:59:00.000Z"
}
],
"meta": { "pagination": { "limit": 50, "offset": 0, "count": 1 } }
}

Vedi anche Errori e limiti per la busta e i codici comuni (stessi della v2), e Aree per gli eventi di ingresso/uscita filtrati per singola area (GET /api/v3/areas/{id}/events).