{
	"info": {
		"_postman_id": "c0d87afe-9b67-4553-b311-cf327f092238",
		"name": "Tesla Fleet",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "38801492"
	},
	"item": [
		{
			"name": "Tesla Auth Token",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "grant_type",
							"value": "client_credentials",
							"type": "text"
						},
						{
							"key": "client_id",
							"value": "",
							"description": "Find in Tesla Developer dashboard",
							"type": "text"
						},
						{
							"key": "client_secret",
							"value": "",
							"description": "Find in Tesla Developer dashboard",
							"type": "text"
						},
						{
							"key": "audience",
							"value": "https://fleet-api.prd.na.vn.cloud.tesla.com",
							"description": "This is the North America / Asia Pacific URL",
							"type": "text"
						},
						{
							"key": "scope",
							"value": "openid offline_access user_data vehicle_device_data vehicle_location vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds",
							"type": "text"
						},
						{
							"key": "",
							"value": "",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/token?grant_type=client_credentials&client_id&client_secret&audience=https://fleet-auth.prd.vn.cloud.tesla.com&scope=openid offline_access user_data vehicle_device_data vehicle_location vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds",
					"protocol": "https",
					"host": [
						"fleet-auth",
						"prd",
						"vn",
						"cloud",
						"tesla",
						"com"
					],
					"path": [
						"oauth2",
						"v3",
						"token"
					],
					"query": [
						{
							"key": "grant_type",
							"value": "client_credentials"
						},
						{
							"key": "client_id",
							"value": null,
							"description": "Find this in your Tesla Developer dashboard"
						},
						{
							"key": "client_secret",
							"value": null,
							"description": "Find this in your Tesla Developer dashboard"
						},
						{
							"key": "audience",
							"value": "https://fleet-auth.prd.vn.cloud.tesla.com",
							"description": "This is the North America URL"
						},
						{
							"key": "scope",
							"value": "openid offline_access user_data vehicle_device_data vehicle_location vehicle_cmds vehicle_charging_cmds energy_device_data energy_cmds"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Tesla Partner Account",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"domain\": \"\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"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"
					]
				}
			},
			"response": []
		}
	]
}