> 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/energy-products/energy.md).

# Overview

The base URI for all site-specific energy product endpoints is `https://owner-api.teslamotors.com/api/1/energy_sites/{site_id}/`. The `site_id` identifies the energy site installation and can be obtained from the [Energy Products API](/api-basics/products.md).

## Endpoints

{% content-ref url="/pages/AsVTi4aZsG94bJ7yE3Iq" %}
[History](/energy-products/energy/history.md)
{% endcontent-ref %}

Get historical data about your energy products.

{% content-ref url="/pages/ZCymxCfsm6PdTvFHycP1" %}
[State](/energy-products/energy/state.md)
{% endcontent-ref %}

Retrieve the current state of your energy products.

{% content-ref url="/pages/5QfYxObjVnYsXWBgeWtV" %}
[Commands](/energy-products/energy/commands.md)
{% endcontent-ref %}

Commands to control your energy products.


---

# 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:

```
GET https://tesla-api.timdorr.com/energy-products/energy.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.
