Devices and tracking

Events

Retrieving event information

Fetch an Event

GET
https://demo.traccar.org/api/events/{id}

Returns a single Event record with full context for the specified identifier

Parameters

idintegerrequiredpath

Response

200OKEvent

OK

Response fields application/json
idinteger<int64>

Unique event identifier

typestring

Event type name

eventTimestring<date-time>

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

deviceIdinteger<int64>

Device associated with the event

positionIdinteger<int64>

Position record linked to the event when applicable

geofenceIdinteger<int64>

Geofence referenced by the event if any

maintenanceIdinteger

Maintenance record tied to the event

attributesobject

Additional event-specific attributes

401Unauthorized

Unauthorized

404Not Found

Not found

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)