# Tesla API

## How is this site organized?

This site is broken into sections for different API information:

* Authentication - API commands to generate an `{access_token}` to communicate with your vehicle.
* Vehicles - API commands to communicate between your vehicle and your client.
* Codes - Localized Tesla vehicle option codes for the [Model S](https://www.teslaapi.io/codes/model-s-options) and [Model X](https://www.teslaapi.io/codes/model-x-options)

## What Tesla products are supported?

* Tesla Model S
* Tesla Model 3
* Tesla Model X
* Tesla Model Y

## What is teslaapi.io?

This is a community of developers who are reverse engineering Tesla's API.

## What are the client\_id and client\_secret values?

Authentication to the Tesla API is done through OAuth. These values were retrieved from somebody's OAuth session and are now being used for API access.

## Is this API official?

Absolutely not. These endpoints are a result of reverse engineering Tesla's mobile applications and vehicle software.


---

# 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/master.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.
