# Speed Limit

## POST `/api/1/vehicles/{id}/command/speed_limit_set_limit`

Sets the maximum speed allowed when Speed Limit Mode is active.

### Parameters

| Parameter  | Example | Description                                    |
| ---------- | ------- | ---------------------------------------------- |
| limit\_mph | 65      | The speed limit in MPH. Must be between 50-90. |

### Response

```json
{
  "reason": "",
  "result": true
}
```

## POST `/api/1/vehicles/{id}/command/speed_limit_activate`

Activates Speed Limit Mode at the currently set speed.

### Parameters

| Parameter | Example | Description                                                |
| --------- | ------- | ---------------------------------------------------------- |
| pin       | 1234    | The existing PIN, if previously set, or a new 4 digit PIN. |

### Response

```json
{
  "reason": "",
  "result": true
}
```

## POST `/api/1/vehicles/{id}/command/speed_limit_deactivate`

Deactivates Speed Limit Mode if it is currently active.

### Parameters

| Parameter | Example | Description                                        |
| --------- | ------- | -------------------------------------------------- |
| pin       | 1234    | The 4 digit PIN used to activate Speed Limit Mode. |

### Response

```json
{
  "reason": "",
  "result": true
}
```

## POST `/api/1/vehicles/{id}/command/speed_limit_clear_pin`

Clears the currently set PIN for Speed Limit Mode.

### Parameters

| Parameter | Example | Description                                        |
| --------- | ------- | -------------------------------------------------- |
| pin       | 1234    | The 4 digit PIN used to activate Speed Limit Mode. |

### Response

```json
{
  "reason": "",
  "result": true
}
```


---

# 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://tesla-api.timdorr.com/vehicle/commands/speedlimit.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.
