[{"data":1,"prerenderedAt":320},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Fapi\u002Fvehicles-and-energy-sites":84,"docs-surround:\u002Fdocs\u002Fapi\u002Fvehicles-and-energy-sites":315},[4,18,43,71],{"title":5,"path":6,"stem":7,"children":8,"page":17},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[9,13],{"title":10,"path":11,"stem":12},"Initial Setup","\u002Fdocs\u002Fgetting-started\u002Finitial-setup","docs\u002F1.getting-started\u002F1.initial-setup",{"title":14,"path":15,"stem":16},"Customer Link","\u002Fdocs\u002Fgetting-started\u002Fcustomer-link","docs\u002F1.getting-started\u002F2.customer-link",false,{"title":19,"path":20,"stem":21,"children":22,"page":17},"Portal","\u002Fdocs\u002Fportal","docs\u002F2.portal",[23,27,31,35,39],{"title":24,"path":25,"stem":26},"Users and Roles","\u002Fdocs\u002Fportal\u002Fusers","docs\u002F2.portal\u002F1.users",{"title":28,"path":29,"stem":30},"Brand and Redirect URLs","\u002Fdocs\u002Fportal\u002Fbrand","docs\u002F2.portal\u002F2.brand",{"title":32,"path":33,"stem":34},"API Keys","\u002Fdocs\u002Fportal\u002Fapi-keys","docs\u002F2.portal\u002F3.api-keys",{"title":36,"path":37,"stem":38},"Webhook","\u002Fdocs\u002Fportal\u002Fwebhook","docs\u002F2.portal\u002F4.webhook",{"title":40,"path":41,"stem":42},"Vehicle Config","\u002Fdocs\u002Fportal\u002Fvehicle-config","docs\u002F2.portal\u002F5.vehicle-config",{"title":44,"path":45,"stem":46,"children":47,"page":17},"API","\u002Fdocs\u002Fapi","docs\u002F3.api",[48,52,56,60,64,67],{"title":49,"path":50,"stem":51},"Introduction","\u002Fdocs\u002Fapi\u002Fintroduction","docs\u002F3.api\u002F1.introduction",{"title":53,"path":54,"stem":55},"Consented Products","\u002Fdocs\u002Fapi\u002Fproducts","docs\u002F3.api\u002F2.products",{"title":57,"path":58,"stem":59},"Vehicles and Energy Sites","\u002Fdocs\u002Fapi\u002Fvehicles-and-energy-sites","docs\u002F3.api\u002F3.vehicles-and-energy-sites",{"title":61,"path":62,"stem":63},"Streaming","\u002Fdocs\u002Fapi\u002Fstreaming","docs\u002F3.api\u002F4.streaming",{"title":36,"path":65,"stem":66},"\u002Fdocs\u002Fapi\u002Fwebhook","docs\u002F3.api\u002F5.webhook",{"title":68,"path":69,"stem":70},"Errors and Limits","\u002Fdocs\u002Fapi\u002Ferrors-and-limits","docs\u002F3.api\u002F6.errors-and-limits",{"title":72,"path":73,"stem":74,"children":75,"page":17},"About","\u002Fdocs\u002Fabout","docs\u002F99.about",[76,80],{"title":77,"path":78,"stem":79},"Terms Of Service","\u002Fdocs\u002Fabout\u002Fterms","docs\u002F99.about\u002F2.terms",{"title":81,"path":82,"stem":83},"Privacy Policy","\u002Fdocs\u002Fabout\u002Fprivacy","docs\u002F99.about\u002F3.privacy",{"id":85,"title":57,"body":86,"description":309,"extension":310,"meta":311,"navigation":312,"path":58,"seo":313,"stem":59,"__hash__":314},"docs\u002Fdocs\u002F3.api\u002F3.vehicles-and-energy-sites.md",{"type":87,"value":88,"toc":302},"minimark",[89,99,104,116,153,160,164,170,189,193,201,207,210,247,253,263,267,273,296],[90,91,92,93,98],"p",{},"Requests for a shared product use the same paths as the Tesla Fleet API, on your ",[94,95,97],"a",{"href":96},"\u002Fdocs\u002Fapi\u002Fintroduction#base-urls","base URL",". Each request runs with the access of the customer who shared the product.",[100,101,103],"h2",{"id":102},"vehicles","Vehicles",[105,106,113],"pre",{"className":107,"code":109,"filename":110,"language":111,"meta":112},[108],"language-text","curl --header \"Authorization: Bearer {token}\" 'https:\u002F\u002Fapi.teslemetry.pro\u002Fapi\u002F1\u002Fvehicles\u002F{vin}\u002Fvehicle_data'\n","Curl Example","text","",[114,115,109],"code",{"__ignoreMap":112},[90,117,118,119,122,123,122,126,122,129,122,132,122,135,122,138,122,141,144,145,148,149,152],{},"Vehicle endpoints include ",[114,120,121],{},"\u002Fapi\u002F1\u002Fvehicles\u002F{vin}",", ",[114,124,125],{},"vehicle_data",[114,127,128],{},"telemetry",[114,130,131],{},"fleet_telemetry_config",[114,133,134],{},"fleet_telemetry_errors",[114,136,137],{},"charge_history",[114,139,140],{},"recent_alerts",[114,142,143],{},"nearby_charging_sites"," and ",[114,146,147],{},"release_notes",". ",[114,150,151],{},"GET \u002Fapi\u002Fimage\u002F{vin}"," returns an image of the vehicle.",[90,154,155,156,159],{},"There is no endpoint to list every vehicle: ",[94,157,158],{"href":54},"list your consented products"," instead.",[100,161,163],{"id":162},"energy-sites","Energy sites",[105,165,168],{"className":166,"code":167,"filename":110,"language":111,"meta":112},[108],"curl --header \"Authorization: Bearer {token}\" 'https:\u002F\u002Fapi.teslemetry.pro\u002Fapi\u002F1\u002Fenergy_sites\u002F{id}\u002Flive_status'\n",[114,169,167],{"__ignoreMap":112},[90,171,172,173,122,176,122,179,122,182,144,185,188],{},"Energy site endpoints include ",[114,174,175],{},"site_info",[114,177,178],{},"live_status",[114,180,181],{},"calendar_history",[114,183,184],{},"telemetry_history",[114,186,187],{},"programs",".",[100,190,192],{"id":191},"commands","Commands",[90,194,195,196,200],{},"Your apps can send commands to the vehicles and energy sites your customers share, when you asked for command access at ",[94,197,199],{"href":198},"\u002Fdocs\u002Fgetting-started\u002Finitial-setup#customer-access","setup",". Every customer who connects grants it. Commands use the Fleet API command paths:",[105,202,205],{"className":203,"code":204,"filename":110,"language":111,"meta":112},[108],"curl --request POST --header \"Authorization: Bearer {token}\" 'https:\u002F\u002Fapi.teslemetry.pro\u002Fapi\u002F1\u002Fvehicles\u002F{vin}\u002Fcommand\u002Fcharge_start'\n",[114,206,204],{"__ignoreMap":112},[90,208,209],{},"Which commands you can send follows your choice:",[211,212,213,229],"ul",{},[214,215,216,220,221,224,225,228],"li",{},[217,218,219],"strong",{},"Vehicle access, data and commands"," - vehicle commands, including ",[114,222,223],{},"wake_up",". With ",[217,226,227],{},"Charging commands only",", your customers grant Teslemetry only Tesla's charging permission, and Tesla refuses other commands for customers who did not grant more.",[214,230,231,234,235,122,238,122,241,144,244,188],{},[217,232,233],{},"Energy site access, commands"," - energy site settings such as ",[114,236,237],{},"backup",[114,239,240],{},"operation",[114,242,243],{},"storm_mode",[114,245,246],{},"grid_import_export",[90,248,249,250,188],{},"A command for a product type you did not ask command access for is refused with ",[114,251,252],{},"403 insufficient_scope",[90,254,255,256,262],{},"Teslemetry wakes an asleep vehicle before a command and retries failed commands, as it does on ",[94,257,261],{"href":258,"rel":259},"https:\u002F\u002Fteslemetry.com\u002Fdocs\u002Fgetting-started\u002Fapi#handling-sleep",[260],"nofollow","teslemetry.com",". Each vehicle needs the Teslemetry virtual key, which your customers install before they can share it.",[100,264,266],{"id":265},"what-a-key-cannot-do","What a key cannot do",[90,268,269,270,272],{},"These are refused with ",[114,271,252],{},", because they would change a customer's own account rather than a product they shared with you:",[211,274,275,278,290],{},[214,276,277],{},"Changes to a vehicle's drivers or invitations.",[214,279,280,144,283,286,287,159],{},[114,281,282],{},"POST \u002Fapi\u002F1\u002Fvehicles\u002Ffleet_telemetry_config",[114,284,285],{},"DELETE \u002Fapi\u002F1\u002Fvehicles\u002F{vin}\u002Ffleet_telemetry_config",". Use ",[94,288,289],{"href":62},"streaming config",[214,291,292,293,188],{},"Any request that does not name a VIN or energy site id in its path, such as ",[114,294,295],{},"GET \u002Fapi\u002F1\u002Fvehicles",[90,297,298,299,301],{},"See ",[94,300,68],{"href":69}," for every error a request can return.",{"title":112,"searchDepth":303,"depth":303,"links":304},2,[305,306,307,308],{"id":102,"depth":303,"text":103},{"id":162,"depth":303,"text":163},{"id":191,"depth":303,"text":192},{"id":265,"depth":303,"text":266},"Reading data from, and sending commands to, the products your customers share.","md",{},true,{"title":57,"description":309},"W2YrdYwbrpGBViFMTmrtJzytDeZ-mJPjdtlJJm-4mJA",[316,318],{"title":53,"path":54,"stem":55,"description":317,"children":-1},"Listing the vehicles and energy sites your customers share with you.",{"title":61,"path":62,"stem":63,"description":319,"children":-1},"Configuring Fleet Telemetry, and receiving it with Server-Sent Events.",1791455699626]