# State And Settings

{% hint style="warning" %}
Work In Progress
{% endhint %}

## Battery Status

<mark style="color:blue;">`GET`</mark> `https://owner-api.teslamotors.com/api/1/powerwalls/:battery_id/status`

#### Path Parameters

| Name         | Type    | Description                               |
| ------------ | ------- | ----------------------------------------- |
| :battery\_id | integer | The `{battery_id}` from the products list |

#### Headers

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

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

```
```

{% endtab %}
{% endtabs %}

## Battery Data

<mark style="color:blue;">`GET`</mark> `https://owner-api.teslamotors.com/api/1/powerwalls/:battery_id`

#### Path Parameters

| Name         | Type    | Description                               |
| ------------ | ------- | ----------------------------------------- |
| :battery\_id | integer | The `{battery_id}` from the products list |

#### Headers

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

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

```
```

{% endtab %}
{% endtabs %}

## Battery Power Time-series Data

<mark style="color:blue;">`GET`</mark> `https://owner-api.teslamotors.com/api/1/powerwalls/:battery_id/powerhistory`

#### Path Parameters

| Name         | Type    | Description                               |
| ------------ | ------- | ----------------------------------------- |
| :battery\_id | integer | The `{battery_id}` from the products list |

#### Headers

| Name          | Type   | Description                                |
| ------------- | ------ | ------------------------------------------ |
| Authorization | string | Bearer {access\_token} from authentication |

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

```
```

{% endtab %}
{% endtabs %}

## Battery Energy Time-series Data

<mark style="color:blue;">`GET`</mark> `https://owner-api.teslamotors.com/api/1/powerwalls/:battery_id/energyhistory`

#### Path Parameters

| Name         | Type    | Description                               |
| ------------ | ------- | ----------------------------------------- |
| :battery\_id | integer | The `{battery_id}` from the products list |

#### Headers

| Name          | Type   | Description                                |
| ------------- | ------ | ------------------------------------------ |
| Authorization | string | Bearer {access\_token} from authentication |

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

```
```

{% endtab %}
{% endtabs %}
