{
  "info": {
    "_postman_id": "cd131e9e-6595-40b0-b808-64052348a17c",
    "name": "Tesla Fleet Energy Backup Programs API",
    "description": "The energy_sites surface of the Tesla Fleet API. Lets OAuth-authorized partners and owners read\nPowerwall, Solar, and Megapack site state \u2014 site info, live status, calendar history, programs \u2014\nand write backup reserve, operation mode (self_consumption, backup, autonomous), storm mode,\ntime-of-use settings, and off-grid vehicle charging reserve.\n\nAuthentication uses Tesla Fleet API OAuth 2.0 with the energy_device_data (read) and\nenergy_cmds (write) scopes. Third-party applications must register a partner account on the\nTesla Developer Portal and pair a virtual key with the owner's account.\n\n\nContact Support:\n Name: Tesla Developer Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T03:10:26.000Z",
    "updatedAt": "2026-07-28T03:10:26.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-cd131e9e-6595-40b0-b808-64052348a17c"
  },
  "item": [
    {
      "name": "energy_sites",
      "item": [
        {
          "name": "{site_id}",
          "item": [
            {
              "name": "programs",
              "item": [
                {
                  "name": "Tesla Get Energy Site Programs",
                  "id": "ae7ca4fb-303a-442c-ac94-25b6d99d1385",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/energy_sites/:site_id/programs",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "energy_sites",
                        ":site_id",
                        "programs"
                      ],
                      "variable": [
                        {
                          "id": "9fd1fcbe-f553-4c32-a3b8-e168aa937c71",
                          "key": "site_id",
                          "value": "<string>",
                          "description": "(Required) The energy_site_id returned by /products."
                        }
                      ]
                    },
                    "description": "Returns virtual power plant and grid-services programs the site is eligible for and currently enrolled in (e.g., regional VPP, demand response)."
                  },
                  "response": [
                    {
                      "id": "28e0262c-5846-486a-a72f-893ef969bc46",
                      "name": "Successful Response",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: oauth2",
                            "key": "Authorization",
                            "value": "<token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/energy_sites/:site_id/programs",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "energy_sites",
                            ":site_id",
                            "programs"
                          ],
                          "variable": [
                            {
                              "key": "site_id"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"response\": [\n    {\n      \"name\": \"<string>\",\n      \"enrolled\": \"<boolean>\",\n      \"eligibility_status\": \"<string>\"\n    },\n    {\n      \"name\": \"<string>\",\n      \"enrolled\": \"<boolean>\",\n      \"eligibility_status\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-07-28T03:10:26.000Z",
                      "updatedAt": "2026-07-28T03:10:26.000Z",
                      "uid": "35240-28e0262c-5846-486a-a72f-893ef969bc46"
                    },
                    {
                      "id": "f7a67192-0e25-47ae-86b3-84c7978b351b",
                      "name": "Missing or invalid bearer token.",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: oauth2",
                            "key": "Authorization",
                            "value": "<token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/energy_sites/:site_id/programs",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "energy_sites",
                            ":site_id",
                            "programs"
                          ],
                          "variable": [
                            {
                              "key": "site_id"
                            }
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"error\": \"<string>\",\n  \"error_description\": \"<string>\"\n}",
                      "createdAt": "2026-07-28T03:10:26.000Z",
                      "updatedAt": "2026-07-28T03:10:26.000Z",
                      "uid": "35240-f7a67192-0e25-47ae-86b3-84c7978b351b"
                    }
                  ],
                  "createdAt": "2026-07-28T03:10:26.000Z",
                  "updatedAt": "2026-07-28T03:10:26.000Z",
                  "uid": "35240-ae7ca4fb-303a-442c-ac94-25b6d99d1385"
                }
              ],
              "id": "e394507f-d71f-4e29-836c-f6fe4bfddf63",
              "createdAt": "2026-07-28T03:10:26.000Z",
              "updatedAt": "2026-07-28T03:10:26.000Z",
              "uid": "35240-e394507f-d71f-4e29-836c-f6fe4bfddf63"
            }
          ],
          "id": "01f69cce-46b0-457c-8f22-7d3316b14b49",
          "createdAt": "2026-07-28T03:10:26.000Z",
          "updatedAt": "2026-07-28T03:10:26.000Z",
          "uid": "35240-01f69cce-46b0-457c-8f22-7d3316b14b49"
        }
      ],
      "id": "c1fdbdde-750a-46dd-a639-5b4b2a8eb7f3",
      "createdAt": "2026-07-28T03:10:26.000Z",
      "updatedAt": "2026-07-28T03:10:26.000Z",
      "uid": "35240-c1fdbdde-750a-46dd-a639-5b4b2a8eb7f3"
    }
  ],
  "auth": {
    "type": "oauth2",
    "oauth2": [
      {
        "key": "scope",
        "value": "energy_device_data energy_cmds offline_access",
        "type": "string"
      },
      {
        "key": "accessTokenUrl",
        "value": "https://auth.tesla.com/oauth2/v3/token",
        "type": "string"
      },
      {
        "key": "authUrl",
        "value": "https://auth.tesla.com/oauth2/v3/authorize",
        "type": "string"
      },
      {
        "key": "grant_type",
        "value": "authorization_code",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1"
    }
  ]
}