Developer Documentation
/ Vehicles
Vehicle Information
Basic Information
This is an object representing a vehicle on the Teslascope service. Note: Some information is accessible if a vehicle is public, while additional information if an authenticated request is made.
Detailed Information
This is an object representing detailed vehicle information.
Reminders
Returns a list of reminders for the vehicle.
Driving & Charging
Driving Sessions
This is a list of all driving sessions for a vehicle.
Driving Session
Returns details for a specific driving session.
Charging Sessions
Returns a list of all charging sessions for the vehicle.
Charging Session
Returns details for a specific charging session.
Trip Management
Trips
Returns a list of all trips for the vehicle.
Trip
Returns details for a specific trip.
Trip (Add Item)
This is an object representing adding a drive or charging session to a trip.
Trip (Remove Item)
Removes a drive or charging session from a trip.
Location Management
Vehicle Locations
Returns a list of saved locations for the vehicle.
Create Location
Creates a new saved location for the vehicle.
Required Parameters
- name(string) - Name of the location
- latitude(float) - Latitude coordinate
- longitude(float) - Longitude coordinate
Optional Parameters
- description(string) - Description of the location
- category(string) - Category of the location
- radius(float) - Radius of the geofence in miles
- notify_on_enter(boolean) - Whether to notify on enter
- notify_on_leave(boolean) - Whether to notify on leave
Update Location
Updates an existing saved location for the vehicle.
Required Parameters
- locationId(integer) - ID of the location to update
Optional Parameters
- name(string) - Updated name of the location
- description(string) - Updated description
- latitude(float) - Updated latitude coordinate
- longitude(float) - Updated longitude coordinate
- radius(float) - Updated radius in miles
- notify_on_enter(boolean) - Updated notify on enter setting
- notify_on_leave(boolean) - Updated notify on leave setting
Remove Location
Removes a saved location from the vehicle.
Required Parameters
- locationId(integer) - ID of the location to remove
Vehicle Management
Activate Vehicle
Activates a vehicle, enabling all vehicle interactions and data collection.
Deactivate Vehicle
Deactivates a vehicle, disabling all vehicle interactions and data collection.
Update Vehicle Name
Updates the name of a vehicle.
Required Parameters
- name(string) - New name for the vehicle