curl --request GET \
--url https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/pressure/history \
--header 'Authorization: <api-key>'import requests
url = "https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/pressure/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/pressure/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/pressure/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/pressure/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/pressure/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/pressure/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",
"speedKph": 80,
"tires": [
{
"position": {
"axleNumber": 2,
"tireCount": 4,
"tireNumber": 2
},
"positionIdentifier": "<string>",
"alertBattery": true,
"alertPressure": 2,
"alertTemp": true,
"pressure": 800000,
"status": "<string>",
"temperature": 45,
"normalizedPressure": 790000
}
]
}
]
}
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}Tire Pressure Events
Get historical tire pressure measurements and inspection data for a specific vehicle and Identifier of a vehicle. Retrieve data within a specified date range with optional pagination. The default date range is 30 days if not specified. Returns detailed pressure readings, temperature data, and sensor information for each tire on the vehicle.
curl --request GET \
--url https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/pressure/history \
--header 'Authorization: <api-key>'import requests
url = "https://public-api.masternautconnect.com/public/v1/customer/{customerId}/asset/{assetId}/tire/pressure/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/pressure/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/pressure/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/pressure/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/pressure/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/pressure/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",
"speedKph": 80,
"tires": [
{
"position": {
"axleNumber": 2,
"tireCount": 4,
"tireNumber": 2
},
"positionIdentifier": "<string>",
"alertBattery": true,
"alertPressure": 2,
"alertTemp": true,
"pressure": 800000,
"status": "<string>",
"temperature": 45,
"normalizedPressure": 790000
}
]
}
]
}
}{
"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. If not provided, defaults to 30 days ago.
Only events occurring before this date will be included in the response. If not provided, defaults to the current date and time. The endDate must be after the startDate.
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?
