DeveloperSkip to main content

  1. Documentation
  2. Charging

Authentication

API endpoints require an authentication token. It must be included as a header:

Authorization: Bearer <token>

Token Types

There are three token types meant for different use cases.

  1. Third-party token: A token representing a third-party application accessing the API or products on behalf of a person. Examples:
    • A third-party developer building a mobile app or service that interacts with a vehicle or powerwall owned by a person.
    • A hobbyists building an integration with their own Tesla product.
  2. Partner token: A token representing an application or business. Examples:
    • A businesses automating interactions with their own fleet of vehicles. -- Businesses can self-onboard to Tesla for Business by visiting the self-onboarding page.
    • A developer making configuration changes to their own application.
    • All calls to Partner Endpoints.
  3. Third-party for Business token: A token representing a third-party application accessing the API or products on behalf of a business.
    • A developer building a fleet management tool used by a business that owns many vehicles.

Scopes

Scopes are used to limit API access to only the data an application needs.

NameScopeDescription
Sign in with TeslaopenidAllow Tesla customers to sign in to the application with their Tesla credentials.
Refresh Tokensoffline_accessAllow getting a refresh token without needing user to log in again.
Profile Informationuser_dataContact information, home address, profile picture, and referral information.
Vehicle Informationvehicle_device_dataAllow access to your vehicle’s live data, service history, service scheduling data, service communications, eligible upgrades, nearby Superchargers and ownership details.
Vehicle Locationvehicle_locationAllow access to vehicle location information, including data such as precise location, and coarse location for approximate location services.
Vehicle Commandsvehicle_cmdsCommands like add/remove driver, access Live Camera, unlock, wake up, remote start, and schedule software updates.
Vehicle Charging Managementvehicle_charging_cmdsVehicle charging history, billed amount, charging location, commands to schedule, and start/stop charging.
Vehicle Specsvehicle_specsAccess detailed vehicle specifications. This scope can only be used by Partner Tokens and can be used for any vehicle without owner authorization.
Energy Product Informationenergy_device_dataEnergy live status, site info, backup history, energy history, and charge history.
Energy Product Settingsenergy_cmdsUpdate settings like backup reserve percent, operation mode, and storm mode.
Enterprise Managemententerprise_managementAllow access to enterprise management functions for businesses.

The OAuth server's metadata file can be found at: https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/thirdparty/.well-known/openid-configuration.

A Postman collection with these requests can be found here.