Last updated 02-Jan-2023
The current way we recommend generating tokens is a little messy but avoids you having to give us your username and password. Please read all the steps before continuing:
Fill out this form: Tesla Logon.
Copy the resulting url as shown
Paste the resulting url into the box below:
The use of the Tesla API has been made more difficult asa number of criteria need to be met before a command can be successfully executed. The API tokens used to last for 30 days, Tesla have reduced this to 8 hours. The car Id needs to be identified and specified. And the car needs to be awake before a command can be executed. Rather than multiple requests and token exchanges, we have created a simple, secure API that takes all these various steps, all you need to do is provide the refresh token and the request as part of the secure call.
The beauty of these API URLs is that they can be included in an Apple shortcut or as part of some other automation. And best of all, it's free.
For more information, see our guide to Tesla automation.
Please be careful with who you share your tokens with. These given people the ability to locate, open, and potentially drive your car without your permission.
If at any time you feel the security of yours, ours or any third party that has ever had your details has been compromised or your token leaked, visit tesla.com and change your Tesla password.
Ways you can support tesla-info