# Commands

## Wake Up

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/wake_up`

Wake up the vehicle.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 Wake up command successful response." %}

```javascript
{
  "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
}
```

{% endtab %}
{% endtabs %}

## Unlock Doors

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/door_unlock`

Unlock doors of the vehicle

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Lock Doors

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/door_lock`

Lock the doors of the vehicle

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Honk Horn

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/honk_horn`

Honks the horn of the vehicle once

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Flash Lights

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/flash_lights`

Flashes the lights of the vehicle once

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Start HVAC System

<mark style="color:green;">`POST`</mark> `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.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Stop HVAC System

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/auto_conditioning_stop`

Stop vehicle climate control system.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Set Temperature

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/set_temps?driver_temp=:driver_temp&passenger_temp=:passenger_temp`

Set vehicle HVAC temperature

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Query Parameters

| Name             | Type   | Description                              |
| ---------------- | ------ | ---------------------------------------- |
| :driver\_temp    | number | Desired driver temperature in Celsius    |
| :passenger\_temp | number | Desired passenger temperature in Celsius |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Set Charge Limit

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/set_charge_limit?percent=:limit_value`

Set vehicle charge limit

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Query Parameters

| Name          | Type   | Description                                |
| ------------- | ------ | ------------------------------------------ |
| :limit\_value | number | Percentage of charge to set the vehicle to |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Set Max Range Charge Limit

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/charge_max_range`

Set vehicle to max charge limit

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Set Standard Charge Limit

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/charge_standard`

Set vehicle to standard charge limit

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/sun_roof_control?state=:state&percent=:percent`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

* `open` - 100% &#x20;
* `closed` - 0% &#x20;
* `comfort` - 80% &#x20;
* `vent` - 15% &#x20;
* `move` - specify {percent}

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/actuate_trunk`

Open vehicles trunk or frunk. Call endpoint again to close trunk.

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Remote Start Drive

<mark style="color:green;">`POST`</mark> `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.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Query Parameters

| Name      | Type   | Description                                 |
| --------- | ------ | ------------------------------------------- |
| :password | string | Password credentials for my.teslamotors.com |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Open Charge Port

<mark style="color:green;">`POST`</mark> `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.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Close Charge Port

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/charge_port_door_close`

Closes vehicle charge port.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Start Charging

<mark style="color:green;">`POST`</mark> `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.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Query Parameters

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| PARAM\_NAME | string | PARAM\_DESC |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Stop Charging

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/charge_stop`

Stop vehicle charging. Vehicle must be charging.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Upcoming Calendar Entries

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/upcoming_calendar_entries`

Set upcoming calendar entries

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Set Valet Mode

<mark style="color:green;">`POST`</mark> `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.

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Query Parameters

| Name      | Type    | Description                   |
| --------- | ------- | ----------------------------- |
| :on       | boolean | Enable or disable valet mode  |
| :password | string  | Four digit pin for valet mode |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Reset valet PIN

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/reset_valet_pin`

Resets vehicle valet PIN

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```javascript
{
  "response": {
    "result": true,
    "reason": ""
  }
}
```

{% endtab %}
{% endtabs %}

## Speed Limit Activate

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/speed_limit_activate`

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Speed Limit Deactivate

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/speed_limit_deactivate`

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Speed Limit Set Limit

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/speed_limit_set_limit`

#### Path Parameters

| Name | Type    | Description                              |
| ---- | ------- | ---------------------------------------- |
| :id  | integer | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Speed Limit Clear PIN

<mark style="color:green;">`POST`</mark> `https://owner-api.teslamotors.com/api/1/vehicles/:id/command/speed_limit_clear_pin`

#### Path Parameters

| Name | Type   | Description                              |
| ---- | ------ | ---------------------------------------- |
| :id  | number | The vehicle `{id}` from the vehicle list |

#### Headers

| Name          | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Authorization | string | Bearer `{access_token}` from authentication |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.teslaapi.io/vehicles/commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
