> For the complete documentation index, see [llms.txt](https://tesla-api.timdorr.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tesla-api.timdorr.com/vehicle/state/vehiclestate.md).

# Vehicle State

{% hint style="warning" %}
This endpoint was deprecated and returns 404.
{% endhint %}

## GET `/api/1/vehicles/{id}/data_request/vehicle_state`

Returns the vehicle's physical state, such as which doors are open.

For the trunk (rt) and frunk (ft) fields, you should interpret a zero (0) value as closed and a non-zero value as open (partially or fully).

Here are the currently known values for the `center_display_state` field:

| State | Description              |
| ----- | ------------------------ |
| 0     | Off                      |
| 2     | On, standby or Camp Mode |
| 3     | On, charging screen      |
| 4     | On                       |
| 5     | On, Big charging screen  |
| 6     | On, Ready to unlock      |
| 7     | Sentry Mode              |
| 8     | Dog Mode                 |
| 9     | Media                    |

Here are the descriptions for the shorthand fields:

| Field | Description     |
| ----- | --------------- |
| df    | driver front    |
| dr    | driver rear     |
| pf    | passenger front |
| pr    | passenger rear  |
| ft    | front trunk     |
| rt    | rear trunk      |

### Response

```json
{
  "response": {
    "api_version": 10,
    "autopark_state_v2": "standby",
    "autopark_style": "standard",
    "calendar_supported": true,
    "car_version": "2020.36.16 3e9e4e8dd287",
    "center_display_state": 0,
    "df": 0,
    "dr": 0,
    "ft": 0,
    "homelink_device_count": 2,
    "homelink_nearby": true,
    "is_user_present": false,
    "last_autopark_error": "no_error",
    "locked": false,
    "media_state": { "remote_control_enabled": true },
    "notifications_supported": true,
    "odometer": 57509.856033,
    "parsed_calendar_supported": true,
    "pf": 0,
    "pr": 0,
    "remote_start": false,
    "remote_start_enabled": true,
    "remote_start_supported": true,
    "rt": 0,
    "sentry_mode": false,
    "sentry_mode_available": true,
    "smart_summon_available": true,
    "software_update": {
      "download_perc": 0,
      "expected_duration_sec": 2700,
      "install_perc": 1,
      "status": "",
      "version": ""
    },
    "speed_limit_mode": {
      "active": false,
      "current_limit_mph": 50.0,
      "max_limit_mph": 90,
      "min_limit_mph": 50,
      "pin_code_set": true
    },
    "summon_standby_mode_enabled": false,
    "sun_roof_percent_open": 0,
    "sun_roof_state": "closed",
    "timestamp": 1604977470379,
    "tpms_pressure_fl": 0.0,
    "tpms_pressure_fr": 0.0,
    "tpms_pressure_rl": 0.0,
    "tpms_pressure_rr": 0.0,
    "valet_mode": false,
    "valet_pin_needed": true,
    "vehicle_name": "Nikola 2.0"
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://tesla-api.timdorr.com/vehicle/state/vehiclestate.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
