This is Postman collection for Tesla API (unoficial).
You can find Tesla API details at the following URL.
You can get an Access Token for the Tesla API by using this postman collection. This access token can control your tesla's functions.
Access Tokens can be expired by changing your Tesla account password.
-
Download and register for Postman.
-
Choose File | Import ....
-
Select Import From Link.
-
Paste the following two URLs and choose Import after each.
https://github.com/sugimomoto/TeslaAPIPostmanCollection/raw/master/Tesla%20API%20Postman%20Collection%20(Unofficial).postman_collection.json
https://github.com/sugimomoto/TeslaAPIPostmanCollection/raw/master/Tesla%20API%20Environment.postman_environment.json
-
Choose the No environment drop down in top right corner.
-
Select Tesla API environment.
- Choose the eye icon to the right and then choose Edit.
Enter a random string of characters for the OAuth2 State. Enter the Client ID, and Client Secret for the Tesla App.
Client Id and Client Secret are at the following URL.
Tesla API OAuth
- Open Get Access Token. Click on the Authorization tab. Scroll down and click Get New Access Token.
- Sign into your Tesla Account.
- Click on Use Token. You can safely delete any expired tokens from Postman (indicated with strikethrough text).
- Click Send to obtain an Access Token. You are now up and running with the Tesla API collections.
To refresh your token, repeat steps 4 through 7.
By the way, most requests have required your Tesla Id. You can find Id at Vehicles or Products Endpoint so you should request this endpoint first.
Enjoy your Tesla API life!