Skip to content

Instantly share code, notes, and snippets.

@jsgoecke
Created December 1, 2024 08:28
Show Gist options
  • Save jsgoecke/8deb0f4bb103a8b891dd3b39a112c848 to your computer and use it in GitHub Desktop.
Save jsgoecke/8deb0f4bb103a8b891dd3b39a112c848 to your computer and use it in GitHub Desktop.
{
"info": {
"_postman_id": "febae843-d525-4066-99af-34461eec37f0",
"name": "Tesla Developer API - (Fleet API Included)",
"description": "For years, Tesla has been leading in innovating electric vehicles and energy solutions. However, their developer API remained tightly sealed, even though many other vendors offered these APIs by reverse engineering the Tesla unreleased APIs until Tesla decided to make their APIs publicly available in October 2023. This direct developer API from Tesla opens up a new frontier for developers and enthusiasts to integrate Tesla’s offerings into their apps and creations.\n\nLet us see the step-by-step procedure to start consuming the Tesla developer APIs.\n\nRead full description here -\n\nPart 1 - [https://shankarkumarasamy.blog/2023/10/29/tesla-developer-api-guide-account-setup-app-creation-registration-and-third-party-authentication-configuration-part-1/](https://shankarkumarasamy.blog/2023/10/29/tesla-developer-api-guide-account-setup-app-creation-registration-and-third-party-authentication-configuration-part-1/)\n\nPart 2 - Fleet API (In progress)\n\nPart 3 - Telemetry Setup (In progress)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "6862951"
},
"item": [
{
"name": "Step 1 - Partner Endpoints - Onboard as a partner",
"item": [
{
"name": "Partner Authentication Tokens",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"partner_authentication_token\", jsonData.access_token);"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
},
{
"key": "client_id",
"value": "{{client_id}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{client_secret}}",
"type": "text"
},
{
"key": "scope",
"value": "openid vehicle_device_data vehicle_cmds vehicle_charging_cmds",
"type": "text"
},
{
"key": "audience",
"value": "{{partner_token_audience}}",
"type": "text"
}
]
},
"url": {
"raw": "https://auth.tesla.com/oauth2/v3/token",
"protocol": "https",
"host": [
"auth",
"tesla",
"com"
],
"path": [
"oauth2",
"v3",
"token"
]
},
"description": "Generates a token to be used for managing a partner's account or devices they own."
},
"response": []
},
{
"name": "Register",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{partner_authentication_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"domain\":\"{{domain_name}}\",\n \"csr\": \"{{csr_name}}\"\n }"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/partner_accounts",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"partner_accounts"
]
},
"description": "Registers an existing account before it can be used for general API access. Each application from developer.tesla.com must complete this step.\n\n- The domain for this endpoint must match the root domain from the allowed_origins on developer.tesla.com. Ex.: 123.abc.com can be used for an allowed_origin of abc.com.\n \n- The Bearer token for this request must be a partner authentication token.\n- A PEM-encoded EC public key using the secp256r1 curve (prime256v1) must be hosted at https:///.well-known/appspecific/com.tesla.3p.public-key.pem. This public key will be registered on devices and used to validate commands that are generated by the [vehicle-command proxy](https://github.com/teslamotors/vehicle-command).\n- The domain will be displayed to users as part of the mobile-app-based vehicle key-pairing process.\n \n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| domain | body | string | Yes | Your domain. You must host a PEM-encoded EC public key at https:///.well-known/appspecific/com.tesla.3p.public-key.pem. Domains must be lowercase and have the same root as a domain from your application's allowed_origins on developer.tesla.com. |"
},
"response": []
},
{
"name": "Public Key",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{partner_authentication_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/partner_accounts/public_key?domain={{domain_name}}",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"partner_accounts",
"public_key"
],
"query": [
{
"key": "domain",
"value": "{{domain_name}}"
}
]
},
"description": "Returns the public key associated with a domain. It can be used to ensure the registration was successful.\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| domain | query | string | No | Partner domain |"
},
"response": []
}
],
"description": "Being a partner with Tesla"
},
{
"name": "Step 2 - Auth - Third party access - Provide access on behalf of the user",
"item": [
{
"name": "A - Auth Code Flow",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [],
"url": {
"raw": "https://auth.tesla.com/oauth2/v3/authorize?client_id={{client_id}}&locale=en-US&prompt=login&redirect_uri={{redirect_uri}}&response_type=code&scope=openid user_data vehicle_device_data vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds offline_access&state=abc123",
"protocol": "https",
"host": [
"auth",
"tesla",
"com"
],
"path": [
"oauth2",
"v3",
"authorize"
],
"query": [
{
"key": "client_id",
"value": "{{client_id}}"
},
{
"key": "locale",
"value": "en-US"
},
{
"key": "prompt",
"value": "login"
},
{
"key": "redirect_uri",
"value": "{{redirect_uri}}"
},
{
"key": "response_type",
"value": "code"
},
{
"key": "scope",
"value": "openid user_data vehicle_device_data vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds offline_access"
},
{
"key": "state",
"value": "abc123"
}
]
},
"description": "Use this Authorization Code Grant flow to generate a token on behalf of a customer. This allows you to make API calls using the scopes granted by the customer.\n\nTo initiate the authorization code flow, direct the customer to an `/authorize` request.\n\nExtract the `code` URL parameter from the callback.\n\n### Parameters\n\n| Name | Required | Example | Description |\n| --- | --- | --- | --- |\n| response_type | Yes | code | A string, always use the value \"code\" |\n| client_id | Yes | abc-123 | Partner app client_id |\n| redirect_uri | Yes | [https://example.com/auth/callback](https://example.com/auth/callback) | Partner app callback url, spec: rfc6749 |\n| scope | Yes | openid offline_access vehicle_device_data vehicle_cmds vehicle_charging_cmds | Space delimited list of scopes, include openid and offline_access to obtain a refresh token |\n| state | Yes | db4af3f87... | Random value used for validation |\n| nonce | No | 7baf90cda... | Random value used for replay prevention |"
},
"response": []
},
{
"name": "A - Auth Code Flo+AccessToken+RefreshToken",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "useBrowser",
"value": false,
"type": "boolean"
},
{
"key": "refreshTokenUrl",
"value": "https://auth.tesla.com/oauth2/v3/token",
"type": "string"
},
{
"key": "client_authentication",
"value": "body",
"type": "string"
},
{
"key": "accessTokenUrl",
"value": "https://auth.tesla.com/oauth2/v3/token",
"type": "string"
},
{
"key": "addTokenTo",
"value": "queryParams",
"type": "string"
},
{
"key": "authUrl",
"value": "https://auth.tesla.com/oauth2/v3/authorize",
"type": "string"
},
{
"key": "scope",
"value": "openid user_data vehicle_device_data vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds offline_access",
"type": "string"
},
{
"key": "clientSecret",
"value": "{{client_secret}}",
"type": "string"
},
{
"key": "clientId",
"value": "{{client_id}}",
"type": "string"
},
{
"key": "redirect_uri",
"value": "https://d1df1o2tn360i5.cloudfront.net/",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": ""
},
"description": "Use this Authorization Code Grant flow to generate a token on behalf of a customer. This allows you to make API calls using the scopes granted by the customer.\n\nTo initiate the authorization code flow, direct the customer to an `/authorize` request.\n\nExtract the `code` URL parameter from the callback.\n\n### Parameters\n\n| Name | Required | Example | Description |\n| --- | --- | --- | --- |\n| response_type | Yes | code | A string, always use the value \"code\" |\n| client_id | Yes | abc-123 | Partner app client_id |\n| redirect_uri | Yes | [https://example.com/auth/callback](https://example.com/auth/callback) | Partner app callback url, spec: rfc6749 |\n| scope | Yes | openid offline_access vehicle_device_data vehicle_cmds vehicle_charging_cmds | Space delimited list of scopes, include openid and offline_access to obtain a refresh token |\n| state | Yes | db4af3f87... | Random value used for validation |\n| nonce | No | 7baf90cda... | Random value used for replay prevention |"
},
"response": []
},
{
"name": "B - Code Exchange - Access and Refresh token",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "authorization_code",
"type": "text"
},
{
"key": "client_id",
"value": "{{client_id}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{client_secret}}",
"type": "text"
},
{
"key": "code",
"value": "{{auth_code}}",
"type": "text"
},
{
"key": "audience",
"value": "{{audience}}",
"type": "text"
},
{
"key": "redirect_uri",
"value": "{{redirect_uri}}",
"type": "text"
}
]
},
"url": {
"raw": "https://auth.tesla.com/oauth2/v3/token",
"protocol": "https",
"host": [
"auth",
"tesla",
"com"
],
"path": [
"oauth2",
"v3",
"token"
]
},
"description": "Execute a code exchange call to generate a token. Save the refresh_token to generate tokens in the future. The access_token can be used as the Bearer token in the Authorization header when making API requests.\n\n### Parameters\n\n| Name | Required | Example | Description |\n| --- | --- | --- | --- |\n| grant_type | Yes | authorization_code | Grant type, authorization_code, refresh_token, client_credentials |\n| client_id | Yes | abc-123 | Partner app client_id |\n| client_secret | Yes | secret-password | Partner app client_secret |\n| code | Yes | a90869e9d... | Code from authorize request callback |\n| redirect_uri | Yes | https://example.com/auth/callback | Partner app callback url, spec: [rfc6749](https://www.rfc-editor.org/rfc/rfc6749#section-3.1.2) |\n| scope | No | openid vehicle_device_data vehicle_cmds vehicle_charging_cmds | Space-delimited list of [scopes](https://developer.tesla.com/docs/fleet-api#authorization-scopes) |\n| audience | Yes | https://fleet-api.prd.na.vn.cloud.tesla.com | Audience for generated token |"
},
"response": []
},
{
"name": "C - Refresh Access Token",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"refresh_token\", jsonData.refresh_token);",
"postman.setEnvironmentVariable(\"access_token\", jsonData.access_token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "refresh_token",
"type": "text"
},
{
"key": "client_id",
"value": "{{client_id}}",
"type": "text"
},
{
"key": "refresh_token",
"value": "{{refresh_token}}",
"type": "text"
}
]
},
"url": {
"raw": "https://auth.tesla.com/oauth2/v3/token",
"protocol": "https",
"host": [
"auth",
"tesla",
"com"
],
"path": [
"oauth2",
"v3",
"token"
]
},
"description": "Use the refresh_token to generate new tokens and obtain refresh tokens."
},
"response": []
}
],
"description": "Get access, refresh and ID token from Tesla to start consuming the Fleet APIs"
},
{
"name": "Step 3 - Third Party Apps - Issue the commands for various operations on behalf of the user",
"item": [
{
"name": "API Status Check",
"item": [
{
"name": "API status check",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/status",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"status"
]
},
"description": "This endpoint returns the string \"ok\" if the API is operating normally. No HTTP headers are required. \n \nNo scope needed."
},
"response": []
}
]
},
{
"name": "Charging Endpoints",
"item": [
{
"name": "Charging History",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/dx/charging/history?vin&startTime&endTime&pageNo&pageSize&sortBy&sortOrder",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"dx",
"charging",
"history"
],
"query": [
{
"key": "vin",
"value": "",
"description": "VIN"
},
{
"key": "startTime",
"value": "",
"description": "StartTime"
},
{
"key": "endTime",
"value": "",
"description": "EndTime"
},
{
"key": "pageNo",
"value": "",
"description": "page number"
},
{
"key": "pageSize",
"value": "",
"description": "records per page"
},
{
"key": "sortBy",
"value": "",
"description": "Field to sort by"
},
{
"key": "sortOrder",
"value": "",
"description": "Sort order"
}
]
},
"description": "Returns the paginated charging history.\n\nscopes: _vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| vin | query | string | No | VIN |\n| startTime | query | string | No | StartTime |\n| endTime | query | string | No | EndTime |\n| pageNo | query | integer | No | page number |\n| pageSize | query | integer | No | records per page |\n| sortBy | query | string | No | Field to sort by |\n| sortOrder | query | string | No | Sort order |"
},
"response": []
},
{
"name": "Charging sessions (available for business accounts that own a fleet of vehicles)",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/dx/charging/sessions?vin&date_from&date_to&limit&offset",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"dx",
"charging",
"sessions"
],
"query": [
{
"key": "vin",
"value": "",
"description": "VIN"
},
{
"key": "date_from",
"value": "",
"description": "date from"
},
{
"key": "date_to",
"value": "",
"description": "date to"
},
{
"key": "limit",
"value": "",
"description": "return quantity"
},
{
"key": "offset",
"value": "",
"description": "offset"
}
]
},
"description": "Returns the charging session information including pricing and energy data. This endpoint is only available for business accounts that own a fleet of vehicles.\n\nNo scope needed\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| vin | query | string | No | VIN |\n| date_from | query | string | No | date from |\n| date_to | query | string | No | date to |\n| limit | query | integer | No | return quantity |\n| offset | query | integer | No | offset |"
},
"response": []
}
]
},
{
"name": "User Endpoints",
"item": [
{
"name": "Me",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/me",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"users",
"me"
]
},
"description": "Returns a summary of a user's account.\n\nscopes: _user_data_"
},
"response": []
},
{
"name": "Backup Key",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/backup_key",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"users",
"backup_key"
]
},
"description": "Returns the public key associated with the user.\n\n \nscopes: _user_data_"
},
"response": []
},
{
"name": "Feature Config",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/feature_config",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"users",
"feature_config"
]
},
"description": "Returns any custom feature flag applied to a user.\n\nscopes: _user_data_"
},
"response": []
},
{
"name": "Orders",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/orders",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"users",
"orders"
]
},
"description": "Returns the active orders for a user."
},
"response": []
},
{
"name": "Region",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/users/region",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"users",
"region"
]
},
"description": "Returns a user's region and appropriate fleet-api base URL. Accepts no parameters, response is based on the authentication token subject.\n\nscopes: _user_data_"
},
"response": []
}
]
},
{
"name": "Vehicle Commands",
"item": [
{
"name": "Actuate Trunk",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"which_trunk\":\"front\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/actuate_trunk",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"actuate_trunk"
]
},
"description": "Controls the front (which_trunk: \"front\") or rear (which_trunk: \"rear\") trunk.\n\n \nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| which_trunk | body | string | Yes |"
},
"response": []
},
{
"name": "Adjust Volume",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"volume\":\"20\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}}/command/adjust_volume",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}}",
"command",
"adjust_volume"
]
},
"description": "Adjusts vehicle media playback volume.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| volume | body | integer | Yes |"
},
"response": []
},
{
"name": "Auto Conditioning Start",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/auto_conditioning_start",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"auto_conditioning_start"
]
},
"description": "Starts climate preconditioning.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Auto Conditioning Stop",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/auto_conditioning_stop",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"auto_conditioning_stop"
]
},
"description": "Stops climate preconditioning.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Cancel Software Update",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/cancel_software_update",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"cancel_software_update"
]
},
"description": "Cancels the countdown to install the vehicle software update. This operation will no longer work after the vehicle begins the software installation.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Charge Max Range",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/charge_max_range",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"charge_max_range"
]
},
"description": "Charges in max range mode -- we recommend limiting the use of this mode to long trips.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Charge Port Door Close",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/charge_port_door_close",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"charge_port_door_close"
]
},
"description": "Closes the charge port door.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Charge Port Door Open",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/charge_port_door_open",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"charge_port_door_open"
]
},
"description": "Opens the charge port door.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Charge Standard",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/charge_standard",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"charge_standard"
]
},
"description": "Charges in Standard mode.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Charge Start",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/charge_start",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"charge_start"
]
},
"description": "Starts charging the vehicle.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Charge Stop",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/charge_stop",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"charge_stop"
]
},
"description": "Stops charging the vehicle.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Clear Pin To Drive Admin",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/clear_pin_to_drive_admin",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"clear_pin_to_drive_admin"
]
},
"description": "Deactivates PIN to Drive and resets the associated PIN for vehicles running firmware versions 2023.44+. This command is only accessible to fleet managers or owners.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Door Lock",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/door_lock",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"door_lock"
]
},
"description": "Locks the vehicle.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Door Unlock",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/door_unlock",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"door_unlock"
]
},
"description": "Unlocks the vehicle.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Erase User Data",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/erase_user_data",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"erase_user_data"
]
},
"description": "Erases user's data from the user interface. Requires the vehicle to be in park.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Flash Lights",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/flash_lights",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"flash_lights"
]
},
"description": "Briefly flashes the vehicle headlights. Requires the vehicle to be in park.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Guest Mode",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"enable\":\"true\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/guest_mode",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"guest_mode"
]
},
"description": "- Restricts certain vehicle UI functionality from guest users:\n \n - PIN to Drive\n \n - Speed Limit Mode\n \n - Glovebox PIN\n \n - Add/Remove keys\n \n - Change vehicle name\n \n- Allows a user to set up Tesla mobile app access with the vehicle key card:\n \n - If a user unlocks a vehicle or authenticates it for driving while in Guest Mode, they will receive a prompt to set up a phone key by scanning a QR code on the vehicle touchscreen.\n \n - Requires vehicle to be online.\n \n - Does not show a QR code if a phone key is already connected.\n \n - Revokes any existing guest access if a QR code is shown.\n \n - Any account that scans the QR code will gain Tesla app access to the vehicle. This allows that account to view live vehicle location and issue remote commands, and download that account's Tesla profile to the vehicle.        \n \n - The QR code is single-use and expires after 10 minutes.\n \n - Use the revoke API to remove access.\n \n - The vehicle needs to be online to use this API (wake if vehicle unavailable).\n \n - The app access is GUEST access, it does not have access to all the features an owner or driver does.\n \n - Only one guest is allowed access at a time.\n \n - If a user does not have the app installed, they will see this webpage ([https://www.tesla.com/_gs/test](https://www.tesla.com/_gs/test)) to guide them through the process.\n \n - A user can set up their phone as key with the Tesla app when in proximity of the vehicle.\n \n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| enable | body | boolean | Yes |"
},
"response": []
},
{
"name": "Honk Horn",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/honk_horn",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"honk_horn"
]
},
"description": "Honks the vehicle horn. Requires the vehicle to be in park.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Media Next Fav",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/media_next_fav",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"media_next_fav"
]
},
"description": "Advances media player to next favorite track.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Media Next Track",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/media_next_track",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"media_next_track"
]
},
"description": "Advances media player to next track.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Media Prev Fav",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/media_prev_fav",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"media_prev_fav"
]
},
"description": "Advances media player to previous favorite track.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Media Prev Track",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/media_prev_track",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"media_prev_track"
]
},
"description": "Advances media player to previous track.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Media Toggle Playback",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/media_toggle_playback",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"media_toggle_playback"
]
},
"description": "Toggles current play/pause state.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Media Volume Down",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/media_volume_down",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"media_volume_down"
]
},
"description": "Turns the volume down by one.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Navigation GPS Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"lat\": null,\n \"lon\": null,\n \"order\": \"integer\"\n}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}}/command/navigation_gps_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}}",
"command",
"navigation_gps_request"
]
},
"description": "Start navigation to given coordinates. Order can be used to specify order of multiple stops.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| lat | body | Unknown | Yes | |\n| lon | body | Unknown | Yes | |\n| order | body | integer | Yes |"
},
"response": []
},
{
"name": "Navigation Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"type\":\"string\",\"value\":null,\"locale\":\"string\",\"timestamp_ms\":\"string\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/navigation_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"navigation_request"
]
},
"description": "Sends a location to the in-vehicle navigation system.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| type | body | string | Yes | |\n| value | body | Unknown | Yes | |\n| locale | body | string | Yes | |\n| timestamp_ms | body | string | Yes |"
},
"response": []
},
{
"name": "Navigation SC Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"id\":0,\"order\":0}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/navigation_sc_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"navigation_sc_request"
]
},
"description": "Start navigation to a supercharger.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| id | body | integer | Yes | |\n| order | body | integer | Yes |"
},
"response": []
},
{
"name": "Remote Auto Seat Climate Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"auto_seat_position\":\"integer\",\"auto_climate_on\":\"boolean\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_auto_seat_climate_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_auto_seat_climate_request"
]
},
"description": "Sets automatic seat heating and cooling.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| auto_seat_position | body | integer | Yes | |\n| auto_climate_on | body | boolean | Yes |"
},
"response": []
},
{
"name": "Remote Auto Steering Wheel Heat Climate Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":false}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_auto_steering_wheel_heat_climate_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_auto_steering_wheel_heat_climate_request"
]
},
"description": "Sets automatic steering wheel heating on/off.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes |"
},
"response": []
},
{
"name": "Remote Boombox",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"sound\":\"integer\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_boombox",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_boombox"
]
},
"description": "Plays a sound through the vehicle external speaker.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| sound | body | integer | Yes |"
},
"response": []
},
{
"name": "Remote Seat Cooler Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"seat_position\":\"integer\",\"seat_cooler_level\":\"integer\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_seat_cooler_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_seat_cooler_request"
]
},
"description": "Sets seat cooling.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| seat_position | body | integer | Yes | |\n| seat_cooler_level | body | integer | Yes |"
},
"response": []
},
{
"name": "Remote Seat Heater Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_seat_heater_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_seat_heater_request"
]
},
"description": "Sets seat heating.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Remote Start Drive",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_start_drive",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_start_drive"
]
},
"description": "Starts the vehicle remotely. Requires keyless driving to be enabled.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Remote Steering Wheel Heat Level Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"level\":\"1\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_steering_wheel_heat_level_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_steering_wheel_heat_level_request"
]
},
"description": "Sets steering wheel heat level.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| level | body | integer | Yes |"
},
"response": []
},
{
"name": "Remote Steering Wheel Heater Request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":true}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/remote_steering_wheel_heater_request",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"remote_steering_wheel_heater_request"
]
},
"description": "Sets steering wheel heating on/off. For vehicles that do not support auto steering wheel heat.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes |"
},
"response": []
},
{
"name": "Reset Pin To Drive Pin",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/reset_pin_to_drive_pin",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"reset_pin_to_drive_pin"
]
},
"description": "Removes PIN to Drive. Requires the car to be in Pin to Drive mode and not in Valet mode. Note that this only works if PIN to Drive is not active.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Reset Valet Pin",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/reset_valet_pin",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"reset_valet_pin"
]
},
"description": "Removes PIN for Valet Mode.\n\nscopes: _vehicle_cmds_\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Schedule Software Update",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"offset_sec\":\"60\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/schedule_software_update",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"schedule_software_update"
]
},
"description": "Schedules a vehicle software update (over the air \"OTA\") to be installed in the future.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| offset_sec | body | integer | Yes |"
},
"response": []
},
{
"name": "Set Bioweapon Mode",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\": false,\"manual_override\": true}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_bioweapon_mode",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_bioweapon_mode"
]
},
"description": "Turns Bioweapon Defense Mode on and off.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes | |\n| manual_override | body | boolean | Yes |"
},
"response": []
},
{
"name": "Set Cabin Overheat Protection",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":true,\"fan_only\":true}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_cabin_overheat_protection",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_cabin_overheat_protection"
]
},
"description": "Sets the vehicle overheat protection.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes | |\n| fan_only | body | boolean | Yes |"
},
"response": []
},
{
"name": "Set Charge Limit",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"percent\": \"80\"\n}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_charge_limit",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_charge_limit"
]
},
"description": "Sets the vehicle charge limit. \n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| percent | body | integer | Yes |"
},
"response": []
},
{
"name": "Set Charging Amps",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"charging_amps\":25}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_charging_amps",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_charging_amps"
]
},
"description": "Sets the vehicle charging amps.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| charging_amps | body | integer | Yes |"
},
"response": []
},
{
"name": "Set Climate Keeper Mode",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"climate_keeper_mode\":0}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_climate_keeper_mode",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_climate_keeper_mode"
]
},
"description": "Enables climate keeper mode. Accepted values are: `0`,`1`,`2`,`3`. Mapping to respectively Off, Keep Mode, Dog Mode, Camp Mode.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| climate_keeper_mode | body | integer | Yes |"
},
"response": []
},
{
"name": "Set COP Temp",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"cop_temp\":1}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_cop_temp",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_cop_temp"
]
},
"description": "Adjusts the Cabin Overheat Protection temperature (COP). This command will not activate COP. The precise target temperature depends on if the user has selected C or F. Accepted values are: `0`,`1`,`2`. Mapping to respectively Low (90F/30C), Medium (95F/35C), High (100F/40C).\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| cop_temp | body | integer | Yes |"
},
"response": []
},
{
"name": "Set pin to drive",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":true,\"password\":\"2017\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_pin_to_drive",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_pin_to_drive"
]
},
"description": "Sets a four-digit passcode for PIN to Drive. This PIN must then be entered before the vehicle can be driven. Once a PIN is set, the vehicle remembers its value even when PIN to Drive is disabled and it will discard any new PIN provided using this method. To change an existing PIN, first call reset_pin_to_drive_pin.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes | |\n| password | body | string |"
},
"response": []
},
{
"name": "Set Preconditioning Max",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":false,\"manual_override\":true}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_preconditioning_max",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_preconditioning_max"
]
},
"description": "Sets an override for preconditioning — it should default to empty if no override is used.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes | |\n| manual_override | body | boolean | Yes |"
},
"response": []
},
{
"name": "Set Scheduled Charging",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"enable\":true,\"time\":180}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_scheduled_charging",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_scheduled_charging"
]
},
"description": "Sets a time at which charging should be completed. The `time` parameter is minutes after midnight (e.g: time=120 schedules charging for 2:00am vehicle local time).\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| enable | body | boolean | Yes | |\n| time | body | integer | Yes |"
},
"response": []
},
{
"name": "Set Scheduled Departure",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"enable\": true,\n \"departure_time\": 450,\n \"preconditioning_enabled\": true,\n \"preconditioning_weekdays_only\": false,\n \"off_peak_charging_enabled\": true,\n \"off_peak_charging_weekdays_only\": false,\n \"end_off_peak_time\": 360\n}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_scheduled_departure",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_scheduled_departure"
]
},
"description": "Sets a time at which departure should be completed. The `time` parameter is minutes after midnight (e.g: time=120 schedules departure for 2:00am vehicle local time).\n\nscopes: _vehicle_cmds, vehicle_charging_cmds_\n\n### Parameters\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| enable | body | boolean | Yes | |\n| departure_time | body | integer | Yes | The parameter is minutes after midnight (e.g: time=120 schedules departure for 2:00am vehicle local time). |\n| preconditioning_enabled | body | boolean | Yes | |\n| preconditioning_weekdays_only | body | boolean | Yes | |\n| off_peak_charging_enabled | body | boolean | Yes | |\n| off_peak_charging_weekdays_only | body | boolean | Yes | |\n| end_off_peak_time | body | integer | Yes | The parameter is minutes after midnight (e.g: time=120 schedules departure for 2:00am vehicle local time). |"
},
"response": []
},
{
"name": "Set Sentry Mode",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":false}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_sentry_mode",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_sentry_mode"
]
},
"description": "Enables and disables Sentry Mode. Sentry Mode allows customers to watch the vehicle cameras live from the mobile app, as well as record sentry events.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes |"
},
"response": []
},
{
"name": "Set Temps",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"driver_temp\":70,\"passenger_temp\":72}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_temps",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_temps"
]
},
"description": "Sets the driver and/or passenger-side cabin temperature (and other zones if sync is enabled).\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n \n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| driver_temp | body | integer | Yes | |\n| passenger_temp | body | integer | Yes |"
},
"response": []
},
{
"name": "Set Valet Mode",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"on\":false,\"password\":\"2017\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_valet_mode",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_valet_mode"
]
},
"description": "Turns on Valet Mode and sets a four-digit passcode that must then be entered to disable Valet Mode.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| on | body | boolean | Yes | |\n| password | body | string | Yes | |"
},
"response": []
},
{
"name": "Set Vehicle Name",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"vehicle_name\":\"ShanFamily\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/set_vehicle_name",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"set_vehicle_name"
]
},
"description": "Changes the name of a vehicle.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| vehicle_name | body | string | Yes |"
},
"response": []
},
{
"name": "Speed Limit Activate",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"pin\":\"2017\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/speed_limit_activate",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"speed_limit_activate"
]
},
"description": "Activates Speed Limit Mode with a four-digit PIN.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| pin | body | string | Yes |"
},
"response": []
},
{
"name": "Speed Limit Clear Pin",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"pin\":\"2017\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/speed_limit_clear_pin",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"speed_limit_clear_pin"
]
},
"description": "Deactivates Speed Limit Mode and resets the associated PIN.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| pin | body | string | Yes |"
},
"response": []
},
{
"name": "Speed Limit Deactivate",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"pin\":\"2017\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/speed_limit_deactivate",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"speed_limit_deactivate"
]
},
"description": "Deactivates Speed Limit Mode.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| pin | body | string | Yes |"
},
"response": []
},
{
"name": "Speed Limit Set Limit",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"limit_mph\":\"75\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/speed_limit_set_limit",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"speed_limit_set_limit"
]
},
"description": "Sets the maximum speed (in miles per hours) for Speed Limit Mode.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| limit_mph | body | integer | Yes |"
},
"response": []
},
{
"name": "Sun Roof Control",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"state\":\"close\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/sun_roof_control",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"sun_roof_control"
]
},
"description": "Control the sunroof on sunroof-enabled vehicles.\n\nSupported states: stop, close, and vent.\n\nscopes: _vehicle_cmds_\n\n### Parameters \n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| state | body | string | Yes |"
},
"response": []
},
{
"name": "Take Drivenote",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"note\":\"Sample user note\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/take_drivenote",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"take_drivenote"
]
},
"description": "Records a drive note. The note parameter is truncated to 80 characters in length.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| note | body | string | Yes | |"
},
"response": []
},
{
"name": "Trigger Homelink",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"lat\":null,\"lon\":null,\"token\":\"string\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/trigger_homelink",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"trigger_homelink"
]
},
"description": "Turns on HomeLink (used to open and close garage doors).\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| lat | body | Unknown | Yes | |\n| lon | body | Unknown | Yes | |\n| token | body | string | Yes |"
},
"response": []
},
{
"name": "Update Calendar Entries",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"calendar_data\":\"Sample calendar data\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/update_calendar_entries",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"update_calendar_entries"
]
},
"description": "Update the calendar entries stored on the vehicle.\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| calendar_data | body | string | Yes |"
},
"response": []
},
{
"name": "Window Control",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"lat\":null,\"lon\":null,\"command\":\"string\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/command/window_control",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"command",
"window_control"
]
},
"description": "Control the windows of a parked vehicle. Supported commands: vent and close. When closing, specify lat and lon of user to ensure they are within range of vehicle (unless this is an M3 platform vehicle).\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| lat | body | Unknown | Yes | |\n| lon | body | Unknown | Yes | |\n| command | body | string | Yes |"
},
"response": []
}
]
},
{
"name": "Vehicle Endpoints",
"item": [
{
"name": "Drivers",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/drivers",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"drivers"
]
},
"description": "Returns all allowed drivers for a vehicle. This endpoint is only available for the vehicle owner.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Drivers",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/drivers",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"drivers"
]
},
"description": "Removes driver access from a vehicle. Share users can only remove their own access. Owners can remove share access or their own.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| share_user_id | query | integer | No | user id from a share |"
},
"response": []
},
{
"name": "List",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": true
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN",
"disabled": true
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles"
],
"query": [
{
"key": "page",
"value": "",
"description": "page number",
"disabled": true
},
{
"key": "per_page",
"value": "",
"description": "quantity per page",
"disabled": true
}
]
},
"description": "Returns the vehicle list\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| page | query | integer | No | page number |\n| per_page | query | integer | No | records per page |"
},
"response": []
},
{
"name": "Mobile Enabled",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/mobile_enabled",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"mobile_enabled"
]
},
"description": "Returns whether or not mobile access is enabled for the vehicle.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Nearby Charging Sites",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/nearby_charging_sites?count=5&radius=10&detail=true",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"nearby_charging_sites"
],
"query": [
{
"key": "count",
"value": "5",
"description": "return quantity"
},
{
"key": "radius",
"value": "10",
"description": "radius in miles"
},
{
"key": "detail",
"value": "true",
"description": "include site detail"
}
]
},
"description": "Returns the charging sites near the current location of the vehicle.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| count | query | integer | No | return quantity |\n| radius | query | integer | No | radius in miles |\n| detail | query | boolean | No | include site detail |"
},
"response": []
},
{
"name": "Recent Alerts",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/recent_alerts",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"recent_alerts"
]
},
"description": "List of recent alerts\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Release Notes",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/release_notes",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"release_notes"
]
},
"description": "Returns firmware release notes.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| staged | query | boolean | No | returns upcoming software update release notes when set to `true` |\n| language | query | integer | No | language locale |"
},
"response": []
},
{
"name": "Service Data",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/service_data",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"service_data"
]
},
"description": "Fetches information about the service status of the vehicle.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Invitations",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/invitations",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"invitations"
]
},
"description": "Returns the active share invites for a vehicle.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| vehicle_id | path | string | Yes | vehicle id |"
},
"response": []
},
{
"name": "Invitations - Create",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"invitation_id\", jsonData.response.id);"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/invitations",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"invitations"
]
},
"description": "```\n• Each invite link is for single-use and expires after 24 hours.\n• An account that uses the invite will gain Tesla app access to the vehicle, which allows it to do the following:\n◦ View the live location of the vehicle.\n◦ Send remote commands.\n◦ Download the user's Tesla profile to the vehicle.\n• To remove access, use the revoke API.\n• If a user does not have the Tesla app installed, they will be directed to this webpage for guidance.\n• A user can set up their phone as key with the Tesla app when in proximity of the vehicle.\n• The app access provides DRIVER privileges, which do not encompass all OWNER features.\n• Up to five drivers can be added at a time .\n• This API does not require the car to be online.\n\n ```\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| vehicle_id | path | string | Yes | vehicle id |"
},
"response": []
},
{
"name": "Invitations - Redeem",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"code\":\"string\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/invitations/redeem",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"invitations",
"redeem"
]
},
"description": "Redeems a share invite. Once redeemed, the account will gain access to the vehicle within the Tesla app.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| code | body | string | Yes | invitation code |"
},
"response": []
},
{
"name": "Invitation - Revoke",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/invitations/{{invitation_id}}/revoke",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"invitations",
"{{invitation_id}}",
"revoke"
]
},
"description": "Revokes a share invite. This invalidates the share and makes the link invalid.\n\nscopes: _vehicle_cmds_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| vehicle_id | path | string | Yes | vehicle id |\n| id | path | string | Yes | id of share_invite to revoke |"
},
"response": []
},
{
"name": "Signed Command",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"body": {
"mode": "raw",
"raw": "{\"routable_message\":\"Base64 encoded signed command message.\"}"
},
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/signed_command",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"signed_command"
]
},
"description": "Sends a signed command to a vehicle. Please see the [vehicle command SDK](https://github.com/teslamotors/vehicle-command) for more information.\n\nscopes: _vehicle_cmds, vehicle_charging_cmds, vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| routable_message | body | string | Yes | Base64 encoded Tesla Vehicle Command Protocol message. |"
},
"response": []
},
{
"name": "Subscriptions",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/subscriptions?device_token&device_token",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"subscriptions"
],
"query": [
{
"key": "device_token",
"value": "",
"description": "Either an APNS device token or a GCM registration id"
},
{
"key": "device_token",
"value": "",
"description": "One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production'"
}
]
},
"description": "Returns the list of vehicles for which this mobile device currently subscribes to push notifications\n\nscopes: _user_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| device_token | query | string | No | Either an APNS device token or a GCM registration id |\n| device_type | query | string | No | One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production' |"
},
"response": []
},
{
"name": "Subscriptions - Set",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/subscriptions?device_token&device_type",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"subscriptions"
],
"query": [
{
"key": "device_token",
"value": "",
"description": "Either an APNS device token or a GCM registration id"
},
{
"key": "device_type",
"value": "",
"description": "One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production'"
}
]
},
"description": "Allows a mobile device to specify which vehicles to receive push notifications from. When calling from a mobile device, it is sufficient to only provide the vehicle IDs to which the mobile device wishes to subscribe to.\n\nscopes: _user_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| device_token | query | string | No | Either an APNS device token or a GCM registration id |\n| device_type | query | string | No | One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production' |"
},
"response": []
},
{
"name": "Vehicle Information",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}"
]
},
"description": "Returns information about a vehicle.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Vehicle Data",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/vehicle_data?endpoints=location_data",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"vehicle_data"
],
"query": [
{
"key": "endpoints",
"value": "location_data",
"description": "location_data"
}
]
},
"description": "Makes a live call to the vehicle. This may return cached data if the vehicle is offline. For vehicles running firmware versions 2023.38+, location_data is required to fetch vehicle location. This will result in a location sharing icon to show on the vehicle UI.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |\n| endpoints | query | string | No | String of URL-encoded, semicolon-separated values. Can be many of 'charge_state', 'climate_state', 'closures_state', 'drive_state', 'gui_settings', 'location_data', 'vehicle_config', 'vehicle_state', 'vehicle_data_combo' |"
},
"response": []
},
{
"name": "Vehicle Subscriptions",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicle_subscriptions?device_token&device_type",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicle_subscriptions"
],
"query": [
{
"key": "device_token",
"value": "",
"description": "Either an APNS device token or a GCM registration id"
},
{
"key": "device_type",
"value": "",
"description": "One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production'"
}
]
},
"description": "Returns the list of vehicles for which this mobile device currently subscribes to push notifications.\n\nscopes: _user_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| device_token | query | string | No | Either an APNS device token or a GCM registration id |\n| device_type | query | string | No | One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production' |"
},
"response": []
},
{
"name": "Vehicle Subscriptions - Set",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicle_subscriptions?device_token&device_type",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicle_subscriptions"
],
"query": [
{
"key": "device_token",
"value": "",
"description": "Either an APNS device token or a GCM registration id"
},
{
"key": "device_type",
"value": "",
"description": "One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production'"
}
]
},
"description": "Allows a mobile device to specify which vehicles to receive push notifications from. It is sufficient to only provide the vehicle IDs to which a mobile device wishes to subscribe to.\n\nscopes: _user_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| device_token | query | string | No | Either an APNS device token or a GCM registration id |\n| device_type | query | string | No | One of 'android', 'ios-development', 'ios-enterprise', 'ios-beta', 'ios-production' |"
},
"response": []
},
{
"name": "Wake Up",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/vehicles/{{id}}/wake_up",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"vehicles",
"{{id}}",
"wake_up"
]
},
"description": "Wakes the vehicle from sleep, which is a state to minimize idle energy consumption.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| id | path | integer | Yes | vehicle id |"
},
"response": []
},
{
"name": "Warranty Details",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer $TESLA_API_TOKEN"
}
],
"url": {
"raw": "https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/dx/warranty/details?vin={{id}}",
"protocol": "https",
"host": [
"fleet-api",
"prd",
"na",
"vn",
"cloud",
"tesla",
"com"
],
"path": [
"api",
"1",
"dx",
"warranty",
"details"
],
"query": [
{
"key": "vin",
"value": "{{id}}",
"description": "Vehicle vin"
}
]
},
"description": "Returns the warranty information for a vehicle.\n\nscopes: _vehicle_device_data_\n\n### Parameters\n\n| Name | In | Type | Required | Description |\n| --- | --- | --- | --- | --- |\n| vin | query | string | No | VIN |"
},
"response": []
}
]
}
]
}
],
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "scope",
"value": "{{scope}}",
"type": "string"
},
{
"key": "redirect_uri",
"value": "{{redirect_uri}}",
"type": "string"
},
{
"key": "refreshRequestParams",
"value": [],
"type": "any"
},
{
"key": "tokenRequestParams",
"value": [],
"type": "any"
},
{
"key": "authRequestParams",
"value": [],
"type": "any"
},
{
"key": "challengeAlgorithm",
"value": "S256",
"type": "string"
},
{
"key": "grant_type",
"value": "authorization_code",
"type": "string"
},
{
"key": "clientSecret",
"value": "{{client_secret}}",
"type": "string"
},
{
"key": "clientId",
"value": "{{client_id}}",
"type": "string"
},
{
"key": "authUrl",
"value": "https://auth.tesla.com/oauth2/v3/authorize",
"type": "string"
},
{
"key": "addTokenTo",
"value": "queryParams",
"type": "string"
},
{
"key": "client_authentication",
"value": "body",
"type": "string"
},
{
"key": "accessTokenUrl",
"value": "https://auth.tesla.com/oauth2/v3/token",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment