Vehicles
Endpoints for getting an account's vehicles
A logged in user can have multiple vehicles under their account (congrats on being rich!). This resource is primarily responsible for listing the vehicles and the basic details about them.
vehicle_id
vs id
vehicle_id
vs id
One potentially confusing part of Tesla's API is the switching use of the id
and vehicle_id
of the car. The id
field is an identifier for the car on the owner-api endpoint. The vehicle_id
field is for identifying the car across different endpoints, such as the streaming or Autopark APIs.
For the state and command APIs, you should be using the id
field. If your JSON parser doesn't support large numbers (>32 bit), then you can use the id_s
field for a string version of the ID.
GET /api/1/vehicles?page={page}
/api/1/vehicles?page={page}
Retrieve a list of your owned vehicles.
The list is limited to a maximum of 100 entries. Use the page
GET parameter to iterate over the response page and use the response count
variable to determine if another request should be made.
Request parameters
page
1
The page number
no
1
Response
GET /api/1/vehicles/{id}
/api/1/vehicles/{id}
These resources are read-only and determine the state of the vehicle's various sub-systems.
URL parameters
id
12345678901234567
The id
of the car. (Not the vehicle_id
!)
Response
Last updated