curl --request POST \
--url https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"startTime": "<string>",
"endTime": "<string>",
"driverKeys": [
"<string>"
],
"registrations": [
"<string>"
],
"skip": 123,
"limit": 123,
"sort": {
"driverId": "<string>",
"driverKey": "<string>",
"activities.assetId": "<string>",
"activities.startTime": "<string>",
"activities.type": "<string>",
"activities.activity": "<string>",
"activities.startLatitude": "<string>",
"activities.startLongitude": "<string>",
"activities.endTime": "<string>",
"activities.endLatitude": "<string>",
"activities.endLongitude": "<string>",
"activities.vehicleFriendlyName": "<string>",
"activities.driverCardSlot": "<string>",
"activities.isStartOfShift": "<string>",
"activities.isEndOfShift": "<string>"
}
}
'import requests
url = "https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity"
payload = {
"startTime": "<string>",
"endTime": "<string>",
"driverKeys": ["<string>"],
"registrations": ["<string>"],
"skip": 123,
"limit": 123,
"sort": {
"driverId": "<string>",
"driverKey": "<string>",
"activities.assetId": "<string>",
"activities.startTime": "<string>",
"activities.type": "<string>",
"activities.activity": "<string>",
"activities.startLatitude": "<string>",
"activities.startLongitude": "<string>",
"activities.endTime": "<string>",
"activities.endLatitude": "<string>",
"activities.endLongitude": "<string>",
"activities.vehicleFriendlyName": "<string>",
"activities.driverCardSlot": "<string>",
"activities.isStartOfShift": "<string>",
"activities.isEndOfShift": "<string>"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
startTime: '<string>',
endTime: '<string>',
driverKeys: ['<string>'],
registrations: ['<string>'],
skip: 123,
limit: 123,
sort: {
driverId: '<string>',
driverKey: '<string>',
'activities.assetId': '<string>',
'activities.startTime': '<string>',
'activities.type': '<string>',
'activities.activity': '<string>',
'activities.startLatitude': '<string>',
'activities.startLongitude': '<string>',
'activities.endTime': '<string>',
'activities.endLatitude': '<string>',
'activities.endLongitude': '<string>',
'activities.vehicleFriendlyName': '<string>',
'activities.driverCardSlot': '<string>',
'activities.isStartOfShift': '<string>',
'activities.isEndOfShift': '<string>'
}
})
};
fetch('https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity', 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/bvfm/services/public/v1/customer/{customerId}/tacho/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'startTime' => '<string>',
'endTime' => '<string>',
'driverKeys' => [
'<string>'
],
'registrations' => [
'<string>'
],
'skip' => 123,
'limit' => 123,
'sort' => [
'driverId' => '<string>',
'driverKey' => '<string>',
'activities.assetId' => '<string>',
'activities.startTime' => '<string>',
'activities.type' => '<string>',
'activities.activity' => '<string>',
'activities.startLatitude' => '<string>',
'activities.startLongitude' => '<string>',
'activities.endTime' => '<string>',
'activities.endLatitude' => '<string>',
'activities.endLongitude' => '<string>',
'activities.vehicleFriendlyName' => '<string>',
'activities.driverCardSlot' => '<string>',
'activities.isStartOfShift' => '<string>',
'activities.isEndOfShift' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity"
payload := strings.NewReader("{\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"driverKeys\": [\n \"<string>\"\n ],\n \"registrations\": [\n \"<string>\"\n ],\n \"skip\": 123,\n \"limit\": 123,\n \"sort\": {\n \"driverId\": \"<string>\",\n \"driverKey\": \"<string>\",\n \"activities.assetId\": \"<string>\",\n \"activities.startTime\": \"<string>\",\n \"activities.type\": \"<string>\",\n \"activities.activity\": \"<string>\",\n \"activities.startLatitude\": \"<string>\",\n \"activities.startLongitude\": \"<string>\",\n \"activities.endTime\": \"<string>\",\n \"activities.endLatitude\": \"<string>\",\n \"activities.endLongitude\": \"<string>\",\n \"activities.vehicleFriendlyName\": \"<string>\",\n \"activities.driverCardSlot\": \"<string>\",\n \"activities.isStartOfShift\": \"<string>\",\n \"activities.isEndOfShift\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"driverKeys\": [\n \"<string>\"\n ],\n \"registrations\": [\n \"<string>\"\n ],\n \"skip\": 123,\n \"limit\": 123,\n \"sort\": {\n \"driverId\": \"<string>\",\n \"driverKey\": \"<string>\",\n \"activities.assetId\": \"<string>\",\n \"activities.startTime\": \"<string>\",\n \"activities.type\": \"<string>\",\n \"activities.activity\": \"<string>\",\n \"activities.startLatitude\": \"<string>\",\n \"activities.startLongitude\": \"<string>\",\n \"activities.endTime\": \"<string>\",\n \"activities.endLatitude\": \"<string>\",\n \"activities.endLongitude\": \"<string>\",\n \"activities.vehicleFriendlyName\": \"<string>\",\n \"activities.driverCardSlot\": \"<string>\",\n \"activities.isStartOfShift\": \"<string>\",\n \"activities.isEndOfShift\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"driverKeys\": [\n \"<string>\"\n ],\n \"registrations\": [\n \"<string>\"\n ],\n \"skip\": 123,\n \"limit\": 123,\n \"sort\": {\n \"driverId\": \"<string>\",\n \"driverKey\": \"<string>\",\n \"activities.assetId\": \"<string>\",\n \"activities.startTime\": \"<string>\",\n \"activities.type\": \"<string>\",\n \"activities.activity\": \"<string>\",\n \"activities.startLatitude\": \"<string>\",\n \"activities.startLongitude\": \"<string>\",\n \"activities.endTime\": \"<string>\",\n \"activities.endLatitude\": \"<string>\",\n \"activities.endLongitude\": \"<string>\",\n \"activities.vehicleFriendlyName\": \"<string>\",\n \"activities.driverCardSlot\": \"<string>\",\n \"activities.isStartOfShift\": \"<string>\",\n \"activities.isEndOfShift\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"count": 123,
"data": [
{
"driverId": "<string>",
"driverKey": "<string>",
"activities": [
{
"assetId": "<string>",
"assetRegistration": "<string>",
"startTime": "<string>",
"type": "<string>",
"activity": "<string>",
"startLatitude": 123,
"startLongitude": 123,
"duration": 123,
"endTime": "<string>",
"endLatitude": 123,
"endLongitude": 123,
"inProgress": true,
"flagDDD": true,
"flagManualEntry": true,
"vehicleFriendlyName": "<string>",
"driverCardSlot": 123,
"isStartOfShift": true,
"isEndOfShift": true,
"distance": 123
}
]
}
]
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}{
"errorCode": 123,
"errorMessage": "<string>"
}Tacho Activity
Returns historical driver tacho activities.
curl --request POST \
--url https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"startTime": "<string>",
"endTime": "<string>",
"driverKeys": [
"<string>"
],
"registrations": [
"<string>"
],
"skip": 123,
"limit": 123,
"sort": {
"driverId": "<string>",
"driverKey": "<string>",
"activities.assetId": "<string>",
"activities.startTime": "<string>",
"activities.type": "<string>",
"activities.activity": "<string>",
"activities.startLatitude": "<string>",
"activities.startLongitude": "<string>",
"activities.endTime": "<string>",
"activities.endLatitude": "<string>",
"activities.endLongitude": "<string>",
"activities.vehicleFriendlyName": "<string>",
"activities.driverCardSlot": "<string>",
"activities.isStartOfShift": "<string>",
"activities.isEndOfShift": "<string>"
}
}
'import requests
url = "https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity"
payload = {
"startTime": "<string>",
"endTime": "<string>",
"driverKeys": ["<string>"],
"registrations": ["<string>"],
"skip": 123,
"limit": 123,
"sort": {
"driverId": "<string>",
"driverKey": "<string>",
"activities.assetId": "<string>",
"activities.startTime": "<string>",
"activities.type": "<string>",
"activities.activity": "<string>",
"activities.startLatitude": "<string>",
"activities.startLongitude": "<string>",
"activities.endTime": "<string>",
"activities.endLatitude": "<string>",
"activities.endLongitude": "<string>",
"activities.vehicleFriendlyName": "<string>",
"activities.driverCardSlot": "<string>",
"activities.isStartOfShift": "<string>",
"activities.isEndOfShift": "<string>"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
startTime: '<string>',
endTime: '<string>',
driverKeys: ['<string>'],
registrations: ['<string>'],
skip: 123,
limit: 123,
sort: {
driverId: '<string>',
driverKey: '<string>',
'activities.assetId': '<string>',
'activities.startTime': '<string>',
'activities.type': '<string>',
'activities.activity': '<string>',
'activities.startLatitude': '<string>',
'activities.startLongitude': '<string>',
'activities.endTime': '<string>',
'activities.endLatitude': '<string>',
'activities.endLongitude': '<string>',
'activities.vehicleFriendlyName': '<string>',
'activities.driverCardSlot': '<string>',
'activities.isStartOfShift': '<string>',
'activities.isEndOfShift': '<string>'
}
})
};
fetch('https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity', 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/bvfm/services/public/v1/customer/{customerId}/tacho/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'startTime' => '<string>',
'endTime' => '<string>',
'driverKeys' => [
'<string>'
],
'registrations' => [
'<string>'
],
'skip' => 123,
'limit' => 123,
'sort' => [
'driverId' => '<string>',
'driverKey' => '<string>',
'activities.assetId' => '<string>',
'activities.startTime' => '<string>',
'activities.type' => '<string>',
'activities.activity' => '<string>',
'activities.startLatitude' => '<string>',
'activities.startLongitude' => '<string>',
'activities.endTime' => '<string>',
'activities.endLatitude' => '<string>',
'activities.endLongitude' => '<string>',
'activities.vehicleFriendlyName' => '<string>',
'activities.driverCardSlot' => '<string>',
'activities.isStartOfShift' => '<string>',
'activities.isEndOfShift' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity"
payload := strings.NewReader("{\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"driverKeys\": [\n \"<string>\"\n ],\n \"registrations\": [\n \"<string>\"\n ],\n \"skip\": 123,\n \"limit\": 123,\n \"sort\": {\n \"driverId\": \"<string>\",\n \"driverKey\": \"<string>\",\n \"activities.assetId\": \"<string>\",\n \"activities.startTime\": \"<string>\",\n \"activities.type\": \"<string>\",\n \"activities.activity\": \"<string>\",\n \"activities.startLatitude\": \"<string>\",\n \"activities.startLongitude\": \"<string>\",\n \"activities.endTime\": \"<string>\",\n \"activities.endLatitude\": \"<string>\",\n \"activities.endLongitude\": \"<string>\",\n \"activities.vehicleFriendlyName\": \"<string>\",\n \"activities.driverCardSlot\": \"<string>\",\n \"activities.isStartOfShift\": \"<string>\",\n \"activities.isEndOfShift\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"driverKeys\": [\n \"<string>\"\n ],\n \"registrations\": [\n \"<string>\"\n ],\n \"skip\": 123,\n \"limit\": 123,\n \"sort\": {\n \"driverId\": \"<string>\",\n \"driverKey\": \"<string>\",\n \"activities.assetId\": \"<string>\",\n \"activities.startTime\": \"<string>\",\n \"activities.type\": \"<string>\",\n \"activities.activity\": \"<string>\",\n \"activities.startLatitude\": \"<string>\",\n \"activities.startLongitude\": \"<string>\",\n \"activities.endTime\": \"<string>\",\n \"activities.endLatitude\": \"<string>\",\n \"activities.endLongitude\": \"<string>\",\n \"activities.vehicleFriendlyName\": \"<string>\",\n \"activities.driverCardSlot\": \"<string>\",\n \"activities.isStartOfShift\": \"<string>\",\n \"activities.isEndOfShift\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.masternautconnect.com/bvfm/services/public/v1/customer/{customerId}/tacho/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"startTime\": \"<string>\",\n \"endTime\": \"<string>\",\n \"driverKeys\": [\n \"<string>\"\n ],\n \"registrations\": [\n \"<string>\"\n ],\n \"skip\": 123,\n \"limit\": 123,\n \"sort\": {\n \"driverId\": \"<string>\",\n \"driverKey\": \"<string>\",\n \"activities.assetId\": \"<string>\",\n \"activities.startTime\": \"<string>\",\n \"activities.type\": \"<string>\",\n \"activities.activity\": \"<string>\",\n \"activities.startLatitude\": \"<string>\",\n \"activities.startLongitude\": \"<string>\",\n \"activities.endTime\": \"<string>\",\n \"activities.endLatitude\": \"<string>\",\n \"activities.endLongitude\": \"<string>\",\n \"activities.vehicleFriendlyName\": \"<string>\",\n \"activities.driverCardSlot\": \"<string>\",\n \"activities.isStartOfShift\": \"<string>\",\n \"activities.isEndOfShift\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"count": 123,
"data": [
{
"driverId": "<string>",
"driverKey": "<string>",
"activities": [
{
"assetId": "<string>",
"assetRegistration": "<string>",
"startTime": "<string>",
"type": "<string>",
"activity": "<string>",
"startLatitude": 123,
"startLongitude": 123,
"duration": 123,
"endTime": "<string>",
"endLatitude": 123,
"endLongitude": 123,
"inProgress": true,
"flagDDD": true,
"flagManualEntry": true,
"vehicleFriendlyName": "<string>",
"driverCardSlot": 123,
"isStartOfShift": true,
"isEndOfShift": true,
"distance": 123
}
]
}
]
}{
"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
Body
The start date and time for the period, in UTC, in format of YYYY-MM-DDThh:mm:ss
The end date and time for the period, in UTC, in format of YYYY-MM-DDThh:mm:ss
MUST be identical to the full key unique 14 character chars and issue number
MUST be identical to the vehicle registration registered with Connect.
DEPRECATED
live, DDD Number of records to be skipped before the beginning of the result set. This acts as an offset from the first record matching the request parameters.
Limit the number of records to return in the response
Object contain direction and field path to sort. Sets the sort order to be either ascending (ASC) or descending (DESC)
Show child attributes
Show child attributes
Was this page helpful?
