Tesla Model S JSON API https://owner-api.teslamotors.com

This is unofficial documentation of the Tesla Model S JSON API used by the iOS and Android apps. It features functionality to monitor and control the Model S remotely.

Authentication

Tokens /oauth/token

POST /oauth/token Get an Access Token

Performs the login. Takes in an plain text email and password, matching the owner's login information for https://my.teslamotors.com/user/login.

Returns a access_token which is passed along as a header with all future requests to authenticate the user.

You must provide the Authorization: Bearer {access_token} header in all other requests.

The current client ID and secret are available here

Request

Example URI
https://owner-api.teslamotors.com/oauth/token
Request object
grant_typestring

The type of oAuth grant. Always "password"

password
client_idstring

The oAuth client ID

abc
client_secretstring

The oAuth client secret

123
emailstring

The email for my.teslamotors.com

elon@teslamotors.com
passwordstring

The password for my.teslamotors.com

edisonsux

Response 204 No Content

Headers
  • Content-Type: application/json

Data structures

Org

namestring Apiary
usernamestring pavan
idnumber

Id of the user

5
addressobject

The address of the user

{ }
arrayarray

array description

  • string
  • string
  • string
inline arrayarray

desc

  • string
  • string
  • string
multilined descriptionstring

some dummy text

and it continue there and will end there