A minimal web app to host your Tesla public key and interact with the Fleet API.
-----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEOsat6GW+VbklxpNIYhTpVr+VFkAxaWQBNbR5n4Faw2U/F4KNw0n8zQdarSzu5Xr0G2u+zrqXgr+J9+3p0NDHPg== -----END PUBLIC KEY-----
In your Tesla Developer account, you must configure your app with the following URLs. The values are generated based on the current domain.
You can generate a partner token directly using the command line.
curl -X POST "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET" \
-d "scope=openid user_data vehicle_device_data vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds offline_access" \
-d "audience=https://fleet-api.prd.na.vn.cloud.tesla.com"