[{"data":1,"prerenderedAt":322},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Fapi\u002Fintroduction":84,"docs-surround:\u002Fdocs\u002Fapi\u002Fintroduction":317},[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":49,"body":86,"description":311,"extension":312,"meta":313,"navigation":314,"path":50,"seo":315,"stem":51,"__hash__":316},"docs\u002Fdocs\u002F3.api\u002F1.introduction.md",{"type":87,"value":88,"toc":304},"minimark",[89,101,116,121,172,184,191,195,202,212,219,226,233,237,240,248,276,280],[90,91,92,93,100],"p",{},"Your apps read your customers' data, and act on it, with the Teslemetry for Business API. It uses the same paths as the ",[94,95,99],"a",{"href":96,"rel":97},"https:\u002F\u002Fteslemetry.com\u002Fdocs\u002Fgetting-started\u002Fapi",[98],"nofollow","Teslemetry API"," and the Tesla Fleet API, plus a few business endpoints.",[90,102,103,104,109,110,115],{},"Every endpoint, with its request and response schema, is in the ",[94,105,108],{"href":106,"rel":107},"https:\u002F\u002Fapi.teslemetry.pro\u002Fdocs\u002F",[98],"API reference",". The OpenAPI document is at ",[94,111,114],{"href":112,"rel":113},"https:\u002F\u002Fapi.teslemetry.pro\u002Fopenapi.json",[98],"api.teslemetry.pro\u002Fopenapi.json",".",[117,118,120],"h2",{"id":119},"base-urls","Base URLs",[122,123,124,137],"table",{},[125,126,127],"thead",{},[128,129,130,134],"tr",{},[131,132,133],"th",{},"URL",[131,135,136],{},"Region",[138,139,140,152,162],"tbody",{},[128,141,142,149],{},[143,144,145],"td",{},[146,147,148],"code",{},"https:\u002F\u002Fapi.teslemetry.pro",[143,150,151],{},"Nearest region",[128,153,154,159],{},[143,155,156],{},[146,157,158],{},"https:\u002F\u002Fna.teslemetry.pro",[143,160,161],{},"North America",[128,163,164,169],{},[143,165,166],{},[146,167,168],{},"https:\u002F\u002Feu.teslemetry.pro",[143,170,171],{},"Europe",[90,173,174,175,180,181,183],{},"Use your business's region, shown on the ",[94,176,179],{"href":177,"external":178},"\u002Fportal\u002Fapi-keys","","API keys"," page, or ",[146,182,148],{},". Each customer's data lives in the region Tesla assigns them, not yours. Teslemetry forwards each request to the right region for you, so you can call any of these with any key.",[90,185,186,187,190],{},"Each response has an ",[146,188,189],{},"x-region"," header with the region that answered it.",[117,192,194],{"id":193},"authentication","Authentication",[90,196,197,198,201],{},"Create an ",[94,199,200],{"href":33},"API key"," in your portal, and send it as a bearer token:",[203,204,210],"pre",{"className":205,"code":207,"filename":208,"language":209,"meta":178},[206],"language-text","curl --header \"Authorization: Bearer {token}\" 'https:\u002F\u002Fapi.teslemetry.pro\u002Fapi\u002Fbusiness\u002Fproducts'\n","Curl Example","text",[146,211,207],{"__ignoreMap":178},[90,213,214,215,218],{},"You can also send it as a ",[146,216,217],{},"token"," query parameter, but a header keeps it out of logs:",[203,220,224],{"className":221,"code":222,"filename":223,"language":209,"meta":178},[206],"https:\u002F\u002Fapi.teslemetry.pro\u002Fapi\u002Fbusiness\u002Fproducts?token={token}\n","Browser Example",[146,225,222],{"__ignoreMap":178},[90,227,228,229,232],{},"Keys start with ",[146,230,231],{},"api.",". Keep them on your servers.",[117,234,236],{"id":235},"what-a-key-can-reach","What a key can reach",[90,238,239],{},"A key can reach only the vehicles and energy sites your customers have shared with your business, and only while they share them. Each request names one product in its path, by VIN or energy site id.",[90,241,242,243,247],{},"What a request may do follows the permissions you chose at ",[94,244,246],{"href":245},"\u002Fdocs\u002Fgetting-started\u002Finitial-setup#customer-access","setup",":",[249,250,251,255,262],"ul",{},[252,253,254],"li",{},"Reading vehicle data needs vehicle access. Reading energy site data needs energy site access.",[252,256,257,258,115],{},"Commands need command access for that product type. See ",[94,259,261],{"href":260},"\u002Fdocs\u002Fapi\u002Fvehicles-and-energy-sites#commands","Commands",[252,263,264,265,268,269,272,273,115],{},"Apart from commands, a key changes only ",[94,266,267],{"href":62},"streaming config"," and your business's own ",[94,270,271],{"href":65},"webhook"," and ",[94,274,275],{"href":54},"products",[117,277,279],{"id":278},"first-request","First request",[281,282,283,289,294],"ol",{},[252,284,285,288],{},[94,286,287],{"href":54},"List your consented products"," to find the VINs and energy site ids your customers share.",[252,290,291,115],{},[94,292,293],{"href":58},"Read a vehicle or an energy site",[252,295,296,297,300,301,303],{},"Set up ",[94,298,299],{"href":62},"streaming"," or a ",[94,302,271],{"href":65}," to receive data as it changes.",{"title":178,"searchDepth":305,"depth":305,"links":306},2,[307,308,309,310],{"id":119,"depth":305,"text":120},{"id":193,"depth":305,"text":194},{"id":235,"depth":305,"text":236},{"id":278,"depth":305,"text":279},"Base URLs, authentication and the API reference.","md",{},true,{"title":49,"description":311},"cWKoEGn1KdNxeH9vdJBbrega9ZXU_zwYHkicdQkfPZk",[318,320],{"title":40,"path":41,"stem":42,"description":319,"children":-1},"The data fields each newly shared vehicle streams to you.",{"title":53,"path":54,"stem":55,"description":321,"children":-1},"Listing the vehicles and energy sites your customers share with you.",1791455699626]