Get Live Fleet Status
curl --request GET \
--url https://api.getswitch.io/copilot/live/fleet-status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/copilot/live/fleet-status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/copilot/live/fleet-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/copilot/live/fleet-status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"available_vehicles": 2,
"location": "milan",
"mapped_vehicles": 2,
"missing_position_vehicles": 1,
"total_vehicles": 3,
"vehicles": [
{
"battery_level": 82,
"id": "veh-1042",
"last_moved": "2026-11-29T08:31:40Z",
"last_seen": "2026-11-29T09:14:05Z",
"lat": 45.4642,
"licence_plate": "GA123BC",
"lon": 9.19,
"status": "available",
"vehicle_model": "Fiat 500e",
"vehicle_type": "car"
},
{
"battery_level": 34,
"id": "veh-1043",
"last_moved": "2026-11-29T09:13:52Z",
"last_seen": "2026-11-29T09:13:52Z",
"lat": 45.4859,
"licence_plate": "GA124BC",
"lon": 9.2045,
"status": "in_use",
"vehicle_model": "Fiat 500e",
"vehicle_type": "car"
},
{
"battery_level": 67,
"id": "veh-1051",
"last_moved": "2026-11-28T19:02:33Z",
"last_seen": "2026-11-28T22:47:10Z",
"status": "ready",
"vehicle_type": "scooter"
}
]
}Live
Get Live Fleet Status
Every vehicle of your fleet in one location right now, read live from your connected fleet platform: position, type and model, battery level, status and when it was last seen and last moved. The totals count the vehicles, those whose status is available or ready, and those with and without a valid position.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions, or the location is not configured for live fleet
- 404:
no_data_binding: no live fleet is configured for your company - 422:
locationis missing or empty - 502: The fleet platform did not answer
Required Auth Scopes:
copilot:live
GET
/
copilot
/
live
/
fleet-status
Get Live Fleet Status
curl --request GET \
--url https://api.getswitch.io/copilot/live/fleet-status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/copilot/live/fleet-status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/copilot/live/fleet-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/copilot/live/fleet-status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"available_vehicles": 2,
"location": "milan",
"mapped_vehicles": 2,
"missing_position_vehicles": 1,
"total_vehicles": 3,
"vehicles": [
{
"battery_level": 82,
"id": "veh-1042",
"last_moved": "2026-11-29T08:31:40Z",
"last_seen": "2026-11-29T09:14:05Z",
"lat": 45.4642,
"licence_plate": "GA123BC",
"lon": 9.19,
"status": "available",
"vehicle_model": "Fiat 500e",
"vehicle_type": "car"
},
{
"battery_level": 34,
"id": "veh-1043",
"last_moved": "2026-11-29T09:13:52Z",
"last_seen": "2026-11-29T09:13:52Z",
"lat": 45.4859,
"licence_plate": "GA124BC",
"lon": 9.2045,
"status": "in_use",
"vehicle_model": "Fiat 500e",
"vehicle_type": "car"
},
{
"battery_level": 67,
"id": "veh-1051",
"last_moved": "2026-11-28T19:02:33Z",
"last_seen": "2026-11-28T22:47:10Z",
"status": "ready",
"vehicle_type": "scooter"
}
]
}Authorizations
HTTPBearerHTTPBearer
