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

Request Body

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

Request Body

Last updated