Tesla JSON API (Unofficial)
GitHubTesla
  • Introduction
  • API Basics
    • Authentication
    • Users
    • Vehicles
    • Energy Products
    • Trip Planner
  • Vehicle
    • State
      • Data
      • Charge State
      • Climate State
      • Drive State
      • GUI Settings
      • Vehicle State
      • Vehicle Config
      • Mobile Enabled
      • Nearby Charging Sites
      • Miscellaneous
    • Commands
      • Wake
      • Alerts
      • Remote Start
      • Homelink
      • Speed Limit
      • Valet Mode
      • Sentry Mode
      • Doors
      • Frunk/Trunk
      • Windows
      • Sunroof
      • Charging
      • Climate
      • Media
      • Sharing
      • Software Updates
      • Calendar
      • Miscellaneous
    • Streaming
    • Autopark/Summon
    • Option Codes
  • Energy Products
    • Overview
      • History
      • State
      • Commands
  • Miscellaneous
    • Endpoints File
Powered by GitBook
On this page
  • POST /api/1/vehicles/{id}/command/window_control
  • Parameters
  • Response
Edit on GitHub
  1. Vehicle
  2. Commands

Windows

POST /api/1/vehicles/{id}/command/window_control

Controls the windows. Will vent or close all windows simultaneously.

lat and lon values must be near the current location of the car for close operation to succeed. For vent, the lat and lon values are ignored, and may both be 0 (which has been observed from the app itself).

Parameters

Parameter
Example
Description

command

close

What action to take with the windows. Allows the values vent and close.

lat

0

Your current latitude. See Notes above.

lon

0

Your current longitude. See Notes above.

Response

{
  "reason": "",
  "result": true
}
PreviousFrunk/TrunkNextSunroof

Last updated 3 years ago