Tesla JSON API (Unofficial)
GitHubTesla
  • Introduction
  • API Basics
    • Authentication
    • Users
    • Vehicles
    • Energy Products
    • Trip Planner
  • Vehicle
    • State
      • Data
      • Charge State
      • Climate State
      • Drive State
      • GUI Settings
      • Vehicle State
      • Vehicle Config
      • Mobile Enabled
      • Nearby Charging Sites
      • Miscellaneous
    • Commands
      • Wake
      • Alerts
      • Remote Start
      • Homelink
      • Speed Limit
      • Valet Mode
      • Sentry Mode
      • Doors
      • Frunk/Trunk
      • Windows
      • Sunroof
      • Charging
      • Climate
      • Media
      • Sharing
      • Software Updates
      • Calendar
      • Miscellaneous
    • Streaming
    • Autopark/Summon
    • Option Codes
  • Energy Products
    • Overview
      • History
      • State
      • Commands
  • Miscellaneous
    • Endpoints File
Powered by GitBook
On this page
  • POST /api/1/vehicles/{id}/command/share
  • Parameters
  • Response
Edit on GitHub
  1. Vehicle
  2. Commands

Sharing

PreviousMediaNextSoftware Updates

Last updated 3 years ago

POST /api/1/vehicles/{id}/command/share

Sends a location for the car to start navigation or play a video in theatre mode.

These docs take from the Android app, which sends the data in JSON form. However, a POST body will work as well. The basic format to a request looks like this:

{
  "type": "share_ext_content_raw",
  "value": {
    "android.intent.extra.TEXT": "123 Main St, City, ST 12345\n\nhttps://goo.gl/maps/X"
  },
  "locale": "en-US",
  "timestamp_ms": "1539465730"
}

Note: This API was previously navigation_request, but has been updated to support video links as well.

Parameters

Parameter
Example
Description

type

share_ext_content_raw

Must be share_ext_content_raw.

locale

en-US

timestamp_ms

1539465730

The current UNIX timestamp.

value[android.intent.extra.TEXT]

123 Main St, City, ST 12345

The address or video URL to set as the navigation destination.

Response

{
  "reason": "",
  "result": true
}

The locale for the navigation request.

URL-encoded
ISO 639-1 standard language codes