curl --request GET \
--url https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history \
--header 'Authorization: <api-key>'import requests
url = "https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history', 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://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history",
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: <api-key>"
],
]);
$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://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pageIndex": 0,
"pageSize": 25,
"totalPages": 10,
"totalCount": 250,
"resultCount": 25,
"hasNextPage": true,
"data": {
"asset": {
"id": "<string>",
"name": "<string>",
"registration": "<string>",
"formattedRegistration": "<string>",
"vin": "<string>"
},
"events": [
{
"eventDate": "2023-11-07T05:31:56Z",
"tires": [
{
"position": {
"axleNumber": 2,
"tireCount": 4,
"tireNumber": 2
},
"positionIdentifier": "<string>",
"inspectionStatus": "MOUNT_CHANGE_SUSPICION",
"regrooved": true,
"retreaded": true,
"grooves": [
{
"grooveNumber": 1,
"rtd": 2.1
}
]
}
]
}
]
}
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}Tire Wear Events
Get historical tire wear measurements and inspection data for a specific vehicle and Identifier of a vehicle. Retrieve data within a specified date range with mandatory start and end dates and optional pagination. Returns tread depth measurements by groove, inspection status, and additional tire condition information for each tire on the vehicle.
curl --request GET \
--url https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history \
--header 'Authorization: <api-key>'import requests
url = "https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history', 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://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history",
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: <api-key>"
],
]);
$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://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/wear/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pageIndex": 0,
"pageSize": 25,
"totalPages": 10,
"totalCount": 250,
"resultCount": 25,
"hasNextPage": true,
"data": {
"asset": {
"id": "<string>",
"name": "<string>",
"registration": "<string>",
"formattedRegistration": "<string>",
"vin": "<string>"
},
"events": [
{
"eventDate": "2023-11-07T05:31:56Z",
"tires": [
{
"position": {
"axleNumber": 2,
"tireCount": 4,
"tireNumber": 2
},
"positionIdentifier": "<string>",
"inspectionStatus": "MOUNT_CHANGE_SUSPICION",
"regrooved": true,
"retreaded": true,
"grooves": [
{
"grooveNumber": 1,
"rtd": 2.1
}
]
}
]
}
]
}
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}Authorizations
Authorization header containing a Bearer token of the form Bearer [token], where [token] is a JWT used to authorize the request
Path Parameters
Identifier (alphanumeric) of a vehicle.
Query Parameters
Only events occurring on or after this date will be included in the response
Only events occurring before this date will be included in the response
Specifies the pagination page index. Pages are zero indexed, i.e. the first page has an index value of zero.
1
Specifies the number of items to include on a page. Must be specified if pageIndex has been specified.
50
Response
200 response
The current page index (zero-based).
0
The number of items per page.
25
The total number of pages available.
10
The total number of items available.
250
The number of items returned in the current response.
25
Indicates if there is a next page available.
Show child attributes
Show child attributes
Was this page helpful?
