Create Tesla API tokens manually

Here is a quick guide on how to create the Tesla API tokens manually from your computer. This is a substitute for our automatic generation during the signup process, which is created to be simple, so you need to have a little technical know-how to do this. 🙂 We will dive into the terminal, but it is really just copy-paste.

Mac OS

  1. Open up the terminal, by typing command+space, which opens up the quick search.
  2. Type in “Terminal” and press enter to open the terminal app
  3. Please have your Tesla username and password ready for the next step
  4. Copy the text below:
    curl --location --request POST 'https://owner-api.teslamotors.com/oauth/token' -F 'grant_type=password' -F 'client_id=81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384' -F 'client_secret=c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3' -F 'email=your tesla email' -F 'password=your tesla password'
  5. Type in your Tesla email and password in the “email” and “password” fields. Do not change anything else.
  6. Paste the code in the terminal
  7. Press enter to run the command.
  8. You will get a result with the “access_token” and “refresh_token”. Save these and use them during the Sinus account creation. 🙂
  9. If you dont get a result with “access_token” and “refresh_token”, your command is invalid or the username/password combo is wrong.

Windows

  1. Open up the application “Powershell”, by searching for it in the taskbar search. Then open it up.
  2. Please have your Tesla username and password ready for the next step
  3. Copy the text below:
    invoke-restmethod -uri 'https://owner-api.teslamotors.com/oauth/token' -Method Post -body @{'grant_type' = 'password'; 'client_id' = '81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384'; 'client_secret' = 'c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3'; 'email' = 'your tesla email'; 'password' = 'your tesla password'}
  4. Type in your Tesla email and password in the “email” and “password” fields. Do not change anything else.
  5. Paste the code in the Powershell terminal
  6. Press enter to run the command.
  7. You will get a result with the “access_token” and “refresh_token”. Save these and use them during the Sinus account creation. 🙂
  8. If you dont get a result with “access_token” and “refresh_token”, your command is invalid or the username/password combo is wrong.

You have now successfully created the API tokens manually. 🙂 These can be used in Sinus or other third party apps using the Tesla API. We recommend that you do not use the same tokens for multiple apps, as it will maybe cause conflicts and some apps may lose access to your account.