Monitor Fleet Vehicles in Real Time
Use the Fleet Management REST APIs to retrieve a live view of all vehicles in your fleet, inspect individual vehicle status, and identify vehicles that are offline or in alert state.
Before monitoring fleet vehicles via the API:
- Note your
tenant_idfrom the Admin console. - Vehicles must be onboarded and in
activestatus.
Fleet monitoring is the process of continuously polling vehicle status and location data to maintain situational awareness across large fleets. This task walks through the API call sequence a client application uses to render a live fleet dashboard.
-
Authenticate and obtain a Bearer token.
POST https://auth.connectedcar.io/oauth2/tokengrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=fleet:readStore the returned
access_tokenfor subsequent calls. -
Retrieve the full list of active fleet vehicles.
GET /v1/fleet/vehicles?status=active&limit=200Authorization: Bearer {access_token}X-Tenant-ID: {tenant_id}Parse
data.vehicles[]to populate your fleet map or table. Usepagination.next_pageto page through results iftotal_recordsexceeds yourlimit. -
Identify vehicles that are offline or have active alerts.
Filter the vehicle list where:
connectivity.online == false— vehicle is unreachable.alerts_active > 0— vehicle has unresolved alerts. Flag these vehicles for immediate attention on the dashboard.
-
Drill into individual vehicle status for flagged vehicles.
GET /v1/fleet/vehicles/{vehicleId}/statusAuthorization: Bearer {access_token}X-Tenant-ID: {tenant_id}Review
engine.state,fuel.level_percent,battery.health_percent,location, andconnectivity.last_heartbeatfor diagnostic context. -
Refresh the fleet list on a polling interval for real-time updates.
Recommended polling interval: every 30 seconds for the fleet list; every 10 seconds for individual vehicle status during active monitoring. Respect the
429 Too Many Requestsresponse and implement exponential back-off if rate limits are reached.
Your client application maintains a current view of all fleet vehicles, their locations, connectivity states, and alert conditions — enabling dispatchers and fleet managers to respond rapidly to incidents.
To organize vehicles by region or purpose, proceed to Manage Fleet Groups.
Related information