curl --request GET \
--url https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections"
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))
}HttpResponse<String> response = Unirest.get("https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"inspections": [
{
"inspectionNumber": "<string>",
"submittedDateTime": "2023-11-07T05:31:56Z",
"inspectionDuration": "<string>",
"personId": "<string>",
"personName": "<string>",
"vehicleId": "<string>",
"vehicleName": "<string>",
"groupName": "<string>",
"address": "<string>",
"lng": 123,
"lat": 123,
"checkResult": "PASSED",
"repairStatus": "OPEN",
"defects": [
{
"category": "<string>",
"name": "<string>",
"description": "<string>",
"checkResult": "<string>",
"note": "<string>",
"repairStatus": "<string>",
"photoIds": [
"<string>"
],
"defectId": "<string>"
}
],
"checks": [
{
"category": "<string>",
"name": "<string>",
"description": "<string>",
"checkResult": "<string>",
"note": "<string>"
}
],
"notes": "<string>",
"contactName": "<string>",
"contactPhone": "<string>",
"odometer": 123,
"make": "<string>",
"model": "<string>",
"completedTooQuickly": true,
"statusChanges": [
{
"repairStatus": "<string>",
"description": "<string>",
"repairDate": "2023-11-07T05:31:56Z",
"signature": "<string>",
"statusChangeTimestamp": "2023-11-07T05:31:56Z"
}
],
"odometerUnit": "<string>"
}
]
}List Inspections
Returns vehicle checks for a specified date range, filtered by vehicle, driver, or group. You must provide at least one of vehicleName, personName, or groupName to define the scope of the results.
curl --request GET \
--url https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections"
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))
}HttpResponse<String> response = Unirest.get("https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.connectedfleet.michelin.com/vehicle-checks/api/v1/vehicle-checks/inspections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"inspections": [
{
"inspectionNumber": "<string>",
"submittedDateTime": "2023-11-07T05:31:56Z",
"inspectionDuration": "<string>",
"personId": "<string>",
"personName": "<string>",
"vehicleId": "<string>",
"vehicleName": "<string>",
"groupName": "<string>",
"address": "<string>",
"lng": 123,
"lat": 123,
"checkResult": "PASSED",
"repairStatus": "OPEN",
"defects": [
{
"category": "<string>",
"name": "<string>",
"description": "<string>",
"checkResult": "<string>",
"note": "<string>",
"repairStatus": "<string>",
"photoIds": [
"<string>"
],
"defectId": "<string>"
}
],
"checks": [
{
"category": "<string>",
"name": "<string>",
"description": "<string>",
"checkResult": "<string>",
"note": "<string>"
}
],
"notes": "<string>",
"contactName": "<string>",
"contactPhone": "<string>",
"odometer": 123,
"make": "<string>",
"model": "<string>",
"completedTooQuickly": true,
"statusChanges": [
{
"repairStatus": "<string>",
"description": "<string>",
"repairDate": "2023-11-07T05:31:56Z",
"signature": "<string>",
"statusChangeTimestamp": "2023-11-07T05:31:56Z"
}
],
"odometerUnit": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The period between dateTimeFrom and dateTimeTo cannot be more than 31 days.
"2022-12-12"
The period between dateTimeFrom and dateTimeTo cannot be more than 31 days.
"2022-12-12"
Group identifier (alphanumeric). Use this to retrieve data for all vehicles within a specific group. Must be specified if neither personName or vehicleName is specified.
Name of the person who submitted the inspection. Must be specified if a value for either vehicleName or groupName is not specified. It supports a list of names.
Friendly name for the vehicle where inspection has been carried out. Must be specified if a value for either personName or groupName is not specified. It supports a list of names.
The number of inspections to include in the output. If not specified it will default to 200.
Token returned in a previous call to this endpoint to get the next set of details.
Response
OK
Array of inspection information.
Show child attributes
Show child attributes
Was this page helpful?
