Commands

Last updated 2 months ago

post
Wake Up

https://owner-api.teslamotors.com
/api/1/vehicles/:id/wake_up
Wake up the vehicle.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
Wake up command successful response.
{
"response": [
{
"id": :id,
"vehicle_id": :vehicle_id,
"vin": ":vin",
"display_name": ":name",
"option_codes": "AD15,AF02,AH00,APF0,APH2,APPA,AU00,BCMB,BP00,BR00,BS00,BTX4,CC02,CDM0,CH05,COUS,CW02,DRLH,DSH7,DV4W,FG02,FR01,GLFR,HC00,HP00,IDBO,INBPB,IX01,LP01,LT3B,MDLX,ME02,MI02,PF00,PI01,PK00,PMBL,QLPB,RCX0,RENA,RFPX,S02B,SP00,SR04,ST02,SU01,TIC4,TM00,TP03,TR01,TRA1,TW01,UM01,USSB,UTAB,WT20,X001,X003,X007,X011,X014,X021,X025,X026,X028,X031,X037,X040,X042,YFFC,SC05",
"color": null,
"tokens": [
":token1",
":token2"
],
"state": "online",
"in_service": null,
"id_s": ":id",
"calendar_enabled": true,
"backseat_token": null,
"backseat_token_updated_at": null
}
],
"count": 1
}

post
Unlock Doors

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/door_unlock
Unlock doors of the vehicle
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Lock Doors

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/door_lock
Lock the doors of the vehicle
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Honk Horn

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/honk_horn
Honks the horn of the vehicle once
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Flash Lights

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/flash_lights
Flashes the lights of the vehicle once
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Start HVAC System

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/auto_conditioning_start
Start vehicle climate control system. The vehicle will automatically determine whether to heat or cool based on set temperature.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Stop HVAC System

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/auto_conditioning_stop
Stop vehicle climate control system.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Set Temperature

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/set_temps?driver_temp=:driver_temp&passenger_temp=:passenger_temp
Set vehicle HVAC temperature
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
Query Parameters
:driver_temp
required
number
Desired driver temperature in Celsius
:passenger_temp
required
number
Desired passenger temperature in Celsius
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Set Charge Limit

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/set_charge_limit?percent=:limit_value
Set vehicle charge limit
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
Query Parameters
:limit_value
required
number
Percentage of charge to set the vehicle to
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Set Max Range Charge Limit

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/charge_max_range
Set vehicle to max charge limit
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Set Standard Charge Limit

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/charge_standard
Set vehicle to standard charge limit
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/sun_roof_control?state=:state&percent=:percent
Request
Response
Path Parameters
optional
string
200: OK
  • open - 100%

  • closed - 0%

  • comfort - 80%

  • vent - 15%

  • move - specify {percent}

post

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/actuate_trunk
Open vehicles trunk or frunk. Call endpoint again to close trunk.
Request
Response
Path Parameters
optional
string
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Remote Start Drive

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/remote_start_drive?password=:password
Start vehicle key-less driving mode. The vehicle must be placed in drive within 2 minutes of the response.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
Query Parameters
:password
required
string
Password credentials for my.teslamotors.com
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Open Charge Port

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/charge_port_door_open
Opens vehicle charge port. Also unlocks the charge port if it is locked.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Close Charge Port

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/charge_port_door_close
Closes vehicle charge port.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Start Charging

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/charge_start
Starts vehicle charging. Vehicle must be plugged in, have power available, and not at charge limit.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
Query Parameters
PARAM_NAME
required
string
PARAM_DESC
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Stop Charging

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/charge_stop
Stop vehicle charging. Vehicle must be charging.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Upcoming Calendar Entries

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/upcoming_calendar_entries
Set upcoming calendar entries
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Set Valet Mode

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/set_valet_mode?on=:on&password=:password
Set vehicle valet mode on or off with a PIN to disable it from within the car. Reuses last PIN from previous valet session. Valet Mode limits the car's top speed to 70MPH and 80kW of acceleration power. It also disables Homelink, Bluetooth and Wifi settings, and the ability to disable mobile access to the car. It also hides your favorites, home, and work locations in navigation.
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
Query Parameters
:on
required
boolean
Enable or disable valet mode
:password
required
string
Four digit pin for valet mode
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Reset valet PIN

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/reset_valet_pin
Resets vehicle valet PIN
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK
{
"response": {
"result": true,
"reason": ""
}
}

post
Speed Limit Activate

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/speed_limit_activate
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK

post
Speed Limit Deactivate

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/speed_limit_deactivate
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK

post
Speed Limit Set Limit

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/speed_limit_set_limit
Request
Response
Path Parameters
:id
required
integer
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK

post
Speed Limit Clear PIN

https://owner-api.teslamotors.com
/api/1/vehicles/:id/command/speed_limit_clear_pin
Request
Response
Path Parameters
:id
required
number
The vehicle {id} from the vehicle list
Headers
Authorization
required
string
Bearer {access_token} from authentication
200: OK