Tesla Energy History API
Historical energy production, consumption, and battery flow
Tesla Energy History API is one of 10 APIs that Tesla Energy publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
This API exposes 2 JSON Schema definitions.
Tagged areas include History. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, a JSON-LD context, and 2 JSON Schemas.
This API exposes 1 operation across 1 path, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.
Requests are made against 2 base URLs: https://fleet-api.prd.na.vn.cloud.tesla.com/api/1, https://fleet-api.prd.eu.vn.cloud.tesla.com/api/1.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Tesla Energy History API declares
1 security scheme
for authenticating requests.
It supports OAuth 2.0 (BearerAuth) using the authorizationCode flow, exposing 3 scopes.
By default, every request must be authenticated.
BearerAuth— Tesla Fleet API OAuth 2.0 with PKCE. Scopes energydevicedata (read) and energycmds (write) required for the energysites endpoints.
Paths & Operations 1
Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.
Historical energy production, consumption, and battery flow
Schemas 3
The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are CalendarHistoryBucket (17 properties), Error (2 properties), CalendarHistoryResponse (1 property). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Tesla Energy 9
Other APIs Tesla Energy publishes across the network.