GET

/v2.0/vehicles/{id}/{make}/compass

This endpoint is currently available for TESLA

Permission

read_compass

Request

Path

idrequired
string

The vehicle id of the vehicle you are making a request to.

makerequired
string

The make of the vehicle you are making a request to.

curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/compass" \
-H "Authorization: Bearer {token}" \
-X "GET"

Response

direction
string

The current direction of the vehicle.

heading
number

The current compass heading of the vehicle (in degrees).

{
  "direction": "SW",
  "heading": 185
}