Historical Vehicle Stats
Changed onList historical stats and logs about the vehicle.
Request
- Base URLhttps://api.withterminal.com/tsp/v1
- URLhttps://api.withterminal.com/tsp/v1/vehicles/{vehicleId}/stats/historical
- AuthHTTP bearer
Query parameters
Pagination cursor to start requests from
The maximum number of results to return in a page.
Expand resources in the returned response
Timestamp to start from - defaults to beginning of history
Timestamp to end at - defaults to now
Comma separated list of vehicle stats to filter for
Include raw responses used to normalize model. Used for debugging or accessing unique properties that are not unified.
Headers
Scopes the request to a Terminal application in the caller's organization. Required for multi-application organizations when using a user session or OAuth access token. API keys are already bound to a single application.
The token returned when a user authenticated their account. This authorizes access to a specific account.
Response
OK
Example response
{
"results": [
{
"id": "vcl_st_01D8ZQFGHVJ858NBF2Q7DV9MNC",
"sourceId": "123456789",
"provider": "geotab",
"timestamp": "2021-01-06T03:24:53.000Z",
"vehicle": "vcl_01D8ZQFGHVJ858NBF2Q7DV9MNC",
"raw": []
}
],
"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw"
}Changes
- breaking
added the pattern
^[A-Za-z0-9+/=_-]+$to thequeryrequest parametercursor - breaking
added to the
//response propertyoneOflist for the response status - warning
added the new
provider_timeoutenum value to theresponse property for the response status - info
added the non-success response with the status
- info
removed
subschema #2: Expanded Vehiclefrom the//response propertyoneOflist for the response status - info
the
response's property pattern^[A-Za-z0-9+/=_-]+$was added for the status
- breaking