Skip to main content
GET
/
customer
/
{customerId}
/
tracking
/
history
/
vehicle
/
latest
Vehicle Tracking History Latest
curl --request GET \
  --url https://api.masternautconnect.com/connect-webservices/services/public/v1/customer/{customerId}/tracking/history/vehicle/latest \
  --header 'Authorization: Bearer <token>'
{
  "processedDateTime": "2023-11-07T05:31:56Z",
  "totalCount": 123,
  "items": [
    {
      "vehicleId": "<string>",
      "vehicleRegistration": "<string>",
      "vehicleName": "<string>",
      "vehicleVin": "<string>",
      "driverId": "<string>",
      "driverName": "<string>",
      "eventId": "<string>",
      "eventDateTime": "2023-11-07T05:31:56Z",
      "eventType": "<string>",
      "eventDescription": "<string>",
      "coordinate": {
        "longitude": 123,
        "latitude": 123
      },
      "address": "<string>",
      "heading": 123,
      "speed": 123,
      "fuelLevel": 123,
      "odometerReading": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerId
string
required

Query Parameters

vehicleId
string

Identifier (alphanumeric) of a vehicle.

groupIds
string[]

Array of group identifiers (alphanumeric).
Only include tracking events for vehicles in these groups.

fromDateTime
string<date-time>
required

Only include tracking frames that have been processed by Connect since this date and time, in UTC, in format of YYYY-MM-DDThh:mm:ss.ms.
Cannot be more than 14 days in the past.

Response

Latest tracking events successfully returned

Response containing the latest tracking events with pagination information

processedDateTime
string<date-time>

Date/time that should be used as the fromDateTime parameter in subsequent calls to retrieve the next batch of tracking events, in UTC, in format of YYYY-MM-DDThh:mm:ss.ms.

totalCount
integer

Total number of tracking events included in the response (maximum 500).

items
object[]

Array of tracking history results.