REST API
Learn how to use the Vehicle Data API to retrieve car data
The Vehicle Data API lets you work with car data on any platform using a REST API. This tutorial will help you get started and show you how to work with it. By following the steps you will be receiving odometer data from the car simulator.
1. Create an application
Visit the Console, create an application and select the data which are intrested in.
2. Create a simulator
In the "Simulation studio" you are able to create vehicles to link with your app and to test with the simulators. Go to the simulation studio and click the big plus (+) button.
3. Link Vehicle and Retrieve Access Token
Now to use the REST API you will need to create an Access Token. Follow the Fleet Clearance guide for fleet vehicles.
4. Send a Request
Once the simulator is open, fire away a request. For example to get the diagnostics state of the vehicle.
If you see that the app lacks permissions, you will need to revisit step two of the "Create an application" section of this document and select the appropriate permissions for your telematics command.
const request = require('request')
request.get({
url: 'https://sandbox.api.high-mobility.com/v1/vehicle-data/autoapi-13/{vin}',
headers: {
Authorization: 'Bearer ' + accessToken
}
}, (error, response, body) => {
console.log('error:', error)
console.log('statusCode:', response && response.statusCode)
console.log('body:', body)
})
Last updated
Was this helpful?

