OAuth

OAuth grant types supported

  • refresh_token

  • password

Get Access Token

POST https://owner-api.teslamotors.com/oauth/token

Performs the login and returns the access token for all subsequent actions

Headers

NameTypeDescription

Content-Type

string

application/json

Request Body

NameTypeDescription

password

string

tesla.com user password

email

string

tesla.com user email address

client_secret

string

c7257eb71a564034f9419ee651c7d0e5f7aa6bfbd18bafb5c5c033b093bb2fa3

client_id

string

81527cff06843c8634fdc09e8ac0abefb46ac849f38fe1e431c2ef2106796384

grant_type

string

password or refresh_token

{
  "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
}

Revoke Access Token

POST https://owner-api.teslamotors.com/oauth/revoke

Revokes the {access_token} issued by the token command

Path Parameters

NameTypeDescription

Content-Type

string

application/json

Request Body

NameTypeDescription

token

string

{access_token}

Last updated