Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Tesla Energy Time Of Use API

Tariff schedule, peak/off-peak rate plans, and TOU optimization

Tesla Energy Time Of Use 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 Time Of Use. 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.

1 operations 1 paths 3 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://fleet-api.prd.na.vn.cloud.tesla.com/api/1
Authentication
OAuth 2.0
Resource Areas
1

Authentication & Security 1

Tesla Energy Time Of Use 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 POST. Each is listed below with its method, path, parameters, and response codes.

Time Of Use 1

Tariff schedule, peak/off-peak rate plans, and TOU optimization

POST
/energy_sites/{site_id}/time_of_use_settings
Tesla Set Time Of Use Settings
setTimeOfUseSettings 1 param body → 200401403

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are Error (2 properties), TimeOfUseSettings (1 property), CommandResult (1 property). Each schema is shown below with its type and property counts.

CommandResult
object
1 property
Error
object
2 properties
TimeOfUseSettings
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

tesla-energy-time-of-use-api-openapi.yml Raw ↑

Other APIs Tesla Energy publishes across the network.

Tesla Energy Backup API
Tesla Energy History API
Tesla Energy Live Status API
Tesla Energy Off Grid Charging API
Tesla Energy Operation API
Tesla Energy Products API
Tesla Energy Programs API
Tesla Energy Site Info API
Tesla Energy Storm Mode API