GET
/
vehicles
/
{id}
/
{make}
/
user
/
access
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/user/access" \
-H "Authorization: Bearer {token}" \
-X "GET"
{
  "accessType": "OWNER",
  "permissions" : ["vehicle_cmds", "vehicle_device_data"]
}

This endpoint is currently available for tesla

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

Request

Path

id
string
required

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

make
string
required

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

Response

accessType
string | null

Returns the type of Tesla account connected. Can be either OWNER or DRIVER. Please see our Tesla FAQs for details on the differences between account types.

permissions
[string] | null

Returns a list of permissions granted by the user with their Tesla account. Please see this page on the mapping from Smartcar permissions to Tesla’s.

{
  "accessType": "OWNER",
  "permissions" : ["vehicle_cmds", "vehicle_device_data"]
}

Notes

  • If you’re receiving a SERVER:INTERNAL error please have the user reconnect their vehicle.

Was this page helpful?