Nevermind. I tried on a mac and it worked. Thanks!When I import that I don't see the entries populated like you have in the screenshot. What am I missing here?
You can install our site as a web app on your iOS device by utilizing the Add to Home Screen feature in Safari. Please see this thread for more details on this.
Note: This feature may not be available in some browsers.
Nevermind. I tried on a mac and it worked. Thanks!When I import that I don't see the entries populated like you have in the screenshot. What am I missing here?
{"response":"authorization_required_for_txid_``"}
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "grant_type=password" -F "client_id=e4a9949fcfa04068f59abb5a658f2bac0a3428e4652315490b659d5ab3f35a9e" -F "client_secret=c75f14bbadc8bee3a7594412c31416f8300256d7668ea7e6e7f06727bfb9d220" -F "email=USER_YOUR_EMAIL" -F "password=USER_YOUR_PASSWORD" "https://owner-api.teslamotors.com/oauth/token"
Ok issue was that my tesla account was blocked.
Well, here's another solution that doesn't run on anyone's server, so no uploading your credentials or security concerns.
It doesn't require Python, Ruby, CURL, PHP, Postman, or using a command line in OSX or Linux.
It only requires the well-known browser plugin Tampermonkey for Chrome or Firefox (see: Tampermonkey) , and my one-line script available here:
About | Telsa API Token Generator | Userscripts | OpenUserJS
Once you install Tampermonkey, and install my script above (one click), just go to this Tesla API URL in your browser:
https://owner-api.teslamotors.com/oauth/token
The script will add a form to enter your credentials, and from the same Teslamotors.com domain, submit your credentials to the API and return the JSON with your token.
Cool Tampermonkey plugin! I did notice that it thinks there are error in syntax for the $ in the code. (Along with using some dot notation and cookie not being defined.) Using 4.8.41 of TamperMonkey.
Cool Tampermonkey plugin! I did notice that it thinks there are error in syntax for the $ in the code. (Along with using some dot notation and cookie not being defined.) Using 4.8.41 of TamperMonkey.
Try using this updated more current version:
About | Telsa API Safe Tools: Token Generator, API Query Tool, and Referral Info Retrieval | Userscripts | OpenUserJS
Bump query. Two cars, two drivers, two phones—I’d rather not change passwords as often as I might want to revoke an access code.I'm pretty sure if you change your Tesla Account password, it instantly invalidates all tokens.
For me, this was the easiest and most secure of all methods posted. Thanks.Well, here's another solution that doesn't run on anyone's server, so no uploading your credentials or security concerns.
It doesn't require Python, Ruby, CURL, PHP, Postman, or using a command line in OSX or Linux.
It only requires the well-known browser plugin Tampermonkey for Chrome or Firefox (see: Tampermonkey) , and my one-line script available here:
About | Telsa API Token Generator | Userscripts | OpenUserJS
Once you install Tampermonkey, and install my script above (one click), just go to this Tesla API URL in your browser:
https://owner-api.teslamotors.com/oauth/token
The script will add a form to enter your credentials, and from the same Teslamotors.com domain, submit your credentials to the API and return the JSON with your token.
For me, this was the easiest and most secure of all methods posted. Thanks.
I noticed when generating an API token that there was an option to "Log Out/Delete Token" and I'm wondering if there's an easy way to do this down the road at any point w/o changing my Tesla.com password? Say I want to revoke access to that one single API token w/o revoking others or needing to change my password. Is there a way to access this option in the future to either list tokens and what device/application they've been used to access & select which ones to revoke or (at minimum) a way to manually enter a token that you've saved elsewhere in your own list and revoke it's access privileges?
I'm not 100% certain, but I do not think there's any way to invalidate a specific token, only that all current tokens are expired when you change your password. If there is, someone please show us how.
So that means if I have multiple apps I want a token for I use the same API token for each one. Getting a new token will revoke the previous one so I'd need to use that new token in all apps I previously had a token for, right?Use the refresh token received when you got your access token to refresh your token.
This should invalidate the original access token.