Tesla Cockpit Creators API

The Creators API is a platform for connected software to interact with Tesla vehicle data in order to enrich the ownership of the finest vehicle on this planet, by enthusiast, for enthusiast.

API

Getting started

Creators keys can be found in the configuration section of the Tesla Cockpit Site.

Login Now»

Request Basics

Aside from the required parameters named in the documenation each request should have the header "Authorization" set to the value of the Personal Creators Key found on the site.

PostMan

An easy to use GUI to make these types of requests can be used to do data discovery.

Learn more »

Simple HTTP Example for returning account information

Request

GET /account/information HTTP/1.1
Host: creators.teslacockpit.com
Authorization: TOKENGOESHERE

Response

[
{
"InsertDate": "2016-08-10T19:52:32",
"QueueStatus": "Good Standing",
"FirstName": "Ryan",
"isNotificationsEnabled": 1,
"TimeZoneID": 6,
"UserType": 1,
"isSmartClimateEnabled": 1,
"isSmartChargeEnabled": 1
}
]

Request Examples

C (LibCurl)

CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://creators.teslacockpit.com/account/information");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "cache-control: no-cache");
headers = curl_slist_append(headers, "authorization: TOKENGOESHERE");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);

cURL

curl -X GET \
https://creators.teslacockpit.com/account/information \
-H 'authorization: TOKENGOESHERE' \
-H 'cache-control: no-cache' \

C# (RestSharp)

var client = new RestClient("https://creators.teslacockpit.com/account/information");
var request = new RestRequest(Method.GET);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("authorization", "TOKENGOESHERE");
IRestResponse response = client.Execute(request);

Ruby (NET::Http)

require 'uri'
require 'net/http'
url = URI("https://creators.teslacockpit.com/account/information")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request["authorization"] = 'TOKENGOESHERE'
request["cache-control"] = 'no-cache'
response = http.request(request)
puts response.read_body

PHP (HttpRequest)

$request = new HttpRequest();
$request->setUrl('https://creators.teslacockpit.com/account/information');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders(array(
'cache-control' => 'no-cache',
'authorization' => 'TOKENGOESHERE'
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}

Python http.client (Python 3)

import http.client
conn = http.client.HTTPSConnection("creators.teslacockpit.com")
payload = ""
headers = {
'authorization': "TOKENGOESHERE",
'cache-control': "no-cache"
} conn.request("GET", "/account/information", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))