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/media_toggle_playback
  • Response
  • POST /api/1/vehicles/{id}/command/media_next_track
  • Response
  • POST /api/1/vehicles/{id}/command/media_prev_track
  • Response
  • POST /api/1/vehicles/{id}/command/media_next_fav
  • Response
  • POST /api/1/vehicles/{id}/command/media_prev_fav
  • Response
  • POST /api/1/vehicles/{id}/command/media_volume_up
  • Response
  • POST /api/1/vehicles/{id}/command/media_volume_down
  • Response
  • POST /api/1/vehicles/{id}/command/adjust_volume
  • Parameters
  • Response
Edit on GitHub
  1. Vehicle
  2. Commands

Media

Controls the currently playing media in the car. For these commands to work, the car must be on.

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

Toggles the media between playing and paused. For the radio, this mutes or unmutes the audio.

Response

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

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

Skips to the next track in the current playlist.

Response

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

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

Skips to the previous track in the current playlist. Does nothing for streaming from Stitcher.

Response

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

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

Skips to the next saved favorite in the media system.

Response

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

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

Skips to the previous saved favorite in the media system.

Response

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

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

Turns up the volume of the media system.

Response

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

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

Turns down the volume of the media system.

Response

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

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

Adjusts the volume of the media system to the desired volume.

Parameters

This endpoint needs a single volume parameter passed inside of the POST body, and will tell you if it's missing.

Note: the endpoint accepts both a string and a numerical value for the volume parameter. It is also currently not present as a feature inside of the Tesla App despite working.

Parameter
Example
Description

volume

1

Numerical value or string from 0-11

{
  "volume": "1"
}
{
  "volume": 1
}

Response

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

Last updated 2 years ago