OAuth

OAuth grant types supported

  • refresh_token

  • password

post
Get Access Token

https://owner-api.teslamotors/oauth/token
Performs the login and returns the access token for all subsequent actions
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
password
required
string
tesla.com user password
email
required
string
tesla.com user email address
client_secret
required
string
c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3
client_id
required
string
81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384
grant_type
required
string
password or refresh_token
200: OK
{
"access_token":"ACCESS_TOKEN_FOR_ALL_API_CALLS",
"token_type":"bearer",
"expires_in":3888000,
"refresh_token":"REFRESH_TOKEN_FOR_REFRESH_API_CALL",
"created_at":1571519135
}

post
Revoke Access Token

https://owner-api.teslamotors.com/oauth/revoke
Revokes the {access_token} issued by the token command
Request
Response
Path Parameters
Content-Type
required
string
application/json
Body Parameters
token
required
string
{access_token}
200: OK
‚Äč