curl --request POST --header 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/honk_horn'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/honk_horn"
{"response":{"reason":"","result":true}}
curl --request POST --header 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/flash_lights'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/flash_lights"
{"response":{"reason":"","result":true}}
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:password, REQUIRED, String The password to the authenticated my.teslamotors.com account.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"password": "edisonsux"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/remote_start_drive'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"password\": \"edisonsux\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/remote_start_drive"
{"response":null,"error":"Authorization Required for txid 5b1d0fbb5ba30953a0b06a7678f0d935
","error_description":""}
{"response":{"reason":"already on","result":false}}
{"response":{"reason":"","result":true}}
curl --request POST --header 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/door_lock'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/door_lock"
{"response":{"reason":"","result":true}}
curl --request POST --header 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/door_unlock'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/door_unlock"
{
"reason": "",
"result": true
}
Controls the windows. Will vent or close all windows simultaneously.
lat
and lon
values must be near the current location of the car for
close
operation to succeed. For vent
, the lat
and lon
values are
ignored, and may both be 0
(which has been observed from the app itself).
Parameter | Example | Description |
---|---|---|
command | close | What action to take with the windows. Allows the values vent and close . |
lat | 0 | Your current latitude. See Notes above. |
lon | 0 | Your current longitude. See Notes above. |
To vent the windows:
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' -d '{\'command\': \'vent\', \'lat\': \'0\', \'lon\': \'0\'}' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/window_control'
To close the windows:
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' -d '{\'command\': \'close\', \'lat\': \'0\', \'lon\': \'0\'}' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/window_control'
{
"reason": "",
"result": true
}
To vent the windows:
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"command\": \"vent\", \"lat\": \"0\", \"lon\": \"0\"}" "https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/window_control"
To close the windows:
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"command\": \"close\", \"lat\": \"0\", \"lon\": \"0\"}" "https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/window_control"
{
"reason": "",
"result": true
}
Controls the sunroof (Model S). Will vent or close the sunroof.
Parameter | Example | Description |
---|---|---|
state | open | What action to take with the sunroof. Allows the values open and closed . |
To vent the sunroof:
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' -d '{\'state\': \'open\'}' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/window_control'
To close the sunroof:
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' -d '{\'state\': \'closed\'}' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/window_control'
To vent the sunroof:
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"state\": \"open\"}" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/window_control"
To close the sunroof:
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"state\": \"closed\"}" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/window_control"
TODO
Parameter | Example | Description |
---|---|---|
which_trunk | front | Which trunk to open/close. rear and front are the only options. On the Model S and X, it will also close the rear trunk. |
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' -d '{"which_trunk": "front"}' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/actuate_trunk'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{"which_trunk": "front"}" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/actuate_trunk"
{"response":{"reason":"","result":true}}
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:on, REQUIRED, true/false Turns sentry mode on or off. True to turn on, false to turn off.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"on": "true"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_sentry_mode'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"on\": \"false\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_sentry_mode"
{"response":{"reason":"","result":true}}
curl --request POST --header 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/auto_conditioning_start'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/auto_conditioning_start"
{"response":{"reason":"","result":true}}
curl --request POST --header 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/auto_conditioning_stop'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/auto_conditioning_stop"
{"response":{"reason":"","result":true}}
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:driver_temp, REQUIRED, number Desired driver temperature in Celsius
:passenger_temp, REQUIRED, number Desired passenger temperature in Celsius
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"driver_temp": "20", "passenger_temp": "21"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_temps'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"driver_temp\": \"20\", \"passenger_temp\": \"21\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_temps"
{"response":{"reason":"","result":true}}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/set_preconditioning_max'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/set_preconditioning_max"
{"response":{"reason":"","result":true}}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' -d '{"heater":1, "level":1}' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/remote_seat_heater_request'
curl --request POST --header "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{"heater":1, "level":1}" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/remote_seat_heater_request"
{
"reason": "",
"result": true
}
If the climate control is off, the command would result in this response.
{"response":{"reason":"cabin comfort remote settings not enabled","result":false}}
======= curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{"0": "3", "1": "3", "2": "3", "3": "3", "4": "3"}" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/remote_seat_heater_request"
### Response
{"response":{"reason":"","result":true}}
>>>>>>> Stashed changes
## Remote Steering Wheel Heater Request Command
### Mac cURL Request
```shell script
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/remote_steering_wheel_heater_request'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/remote_steering_wheel_heater_request"
{
"reason": "",
"result": true
}
If the car is not equipped with a heated steering wheel, the command would result in this response.
{"response":{"reason":"cabin comfort remote settings not enabled","result":false}}
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:percent, REQUIRED, number Percentage of charge to set the vehicle to. Ex: 70
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"percent": "77"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_charge_limit'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"percent\": \"77\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_charge_limit"
{"response":{"reason":"","result":true}}
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_max_range'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_max_range"
{"response":{"reason":"","result":true}}
{"response":{"reason":"already_max_range","result":false}}
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_standard'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_standard"
{"response":{"reason":"","result":true}}
{"response":{"reason":"already_standard","result":false}}
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_port_door_open'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_port_door_open"
{"response":{"reason":"","result":true}} {"response":{"reason":"already open","result":false}}
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_port_door_close'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_port_door_close"
{"response":{"reason":"","result":true}} {"response":{"reason":"already closed","result":false}}
If the car is plugged in but not currently charging, this will start it charging.
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_start'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_start"
{"response":{"reason":"","result":true}} {"response":null,"error":"vehicle unavailable: {:error=>"vehicle unavailable:"}","error_description":""}
If the car is currently charging, this will stop it.
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_stop'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/charge_stop"
{"response":{"reason":"","result":true}} {"response":null,"error":"vehicle unavailable: {:error=>"vehicle unavailable:"}","error_description":""}
Sets the maximum speed allowed when Speed Limit Mode is active.
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:limit_mph, REQUIRED, ex: 65 The speed limit in MPH. Must be between 50-90.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"limit_mph": "65"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_set_limit'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"limit_mph\": \"65\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_set_limit"
{"response":{"reason":"","result":true}} {"response":null,"error":"vehicle unavailable: {:error=>"vehicle unavailable:"}","error_description":""}
Activates Speed Limit Mode at the currently set speed.
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:pin, REQUIRED, ex: 1234 The existing PIN, if previously set, or a new 4 digit PIN.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"pin": "1234"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_activate'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"pin\": \"1234\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_activate"
{"response":{"reason":"","result":true}}
Deactivates Speed Limit Mode if it is currently active.
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:pin, REQUIRED, ex: 1234 The 4 digit PIN used to activate Speed Limit Mode.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"pin": "1234"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_deactivate'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"pin\": \"1234\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_deactivate"
{"response":{"reason":"","result":true}}
Clears the currently set PIN for Speed Limit Mode.
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:pin, REQUIRED, ex: 1234 The 4 digit PIN used to activate Speed Limit Mode.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"pin": "1234"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_clear_pin'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"pin\": \"1234\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/speed_limit_clear_pin"
{"response":{"reason":"","result":true}} {"response":{"reason":"no_pin_set","result":false}}
Sends a location for the car to start navigation or play a video in theatre mode.
When the car is in park mode, you can send video url to play. When the car is moving, you can send a location/address to go to.
These docs take from the Android app, which sends the data in JSON form. However, a URL-encoded 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.
Parameter | Example | Description |
---|---|---|
type | share_ext_content_raw | Must be share_ext_content_raw . |
locale | en-US | The locale for the navigation request. ISO 639-1 standard language codes |
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. |
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{ "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" }' 'https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/share'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"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\": \"1601840213\"}" "https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/share"
{"response":{"result":true,"queued":false}}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/upcoming_calendar_entries'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/upcoming_calendar_entries"
{
"reason": "",
"result": true
}
Schedules a software update to be installed, if one is available.
Parameter | Example | Description |
---|---|---|
offset_sec | 7200 | How many seconds in the future to schedule the update. Set to 0 for immediate install. |
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"offset_sec": "7200"}' 'https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/schedule_software_update'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"offset_sec\": \"7200\"}" "https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/schedule_software_update"
When there is not update to schedule
{"response":{"reason":"update_not_available","result":false}}
On success:
{"response":{"expected_duration_sec":1500,"reason":"","result":true,"scheduled_time_ms":1608842622476,"status":"scheduled","warning_time_remaining_ms":120000}}
Cancels a software update, if one is scheduled and has not yet started.
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/cancel_software_update'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/47454545211476819/command/cancel_software_update"
Response when vehicle is not awake.
{"response":null,"error":"vehicle unavailable: {:error=>\"vehicle unavailable:\"}","error_description":""}
Response when there is no update scheduled
{"response":{"reason":"no_update_scheduled","result":false}}
On success:
{
"reason": "",
"result": true
}
Toggles the media between playing and paused. For the radio, this mutes or unmutes the audio.
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_toggle_playback'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_toggle_playback"
{
"reason": "",
"result": true
}
If the user is not present in the car, all media commands would result in this response.
{"response":{"reason":"user_not_present","result":false}}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_next_track'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_next_track"
{
"reason": "",
"result": true
}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_prev_track'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_prev_track"
{
"reason": "",
"result": true
}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_next_fav'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_next_fav"
{
"reason": "",
"result": true
}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_prev_fav'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_prev_fav"
{
"reason": "",
"result": true
}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_volume_up'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_volume_up"
{
"reason": "",
"result": true
}
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_volume_down'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/media_volume_down"
{
"reason": "",
"result": true
}
Activates or deactivates Valet Mode.
Warning: some online documentation suggests to pass parameters as query strings, but that will not work. Pass it in the POST body.
:on, REQUIRED, true/false true to activate, false to deactivate.
password, OPTIONAL, ex: 1234 A PIN to deactivate Valet Mode. Please see note about the password parameter.
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"on": "true"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_valet_mode'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' -d '{"on": "true", "password": "1234"}' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_valet_mode'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"on\": \"false\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_valet_mode"
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" -d "{\"on\": \"true\", \"password\": \"1234\"}" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/set_valet_mode"
{"response":{"reason":"","result":true}} {"response":{"reason":"already off","result":false}} {"response":{"reason":"already on","result":false}}
Clears the currently set PIN for Valet Mode when deactivated. A new PIN will be required when activating from the car screen. See the note above about activating via the API without a PIN set.
NA
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/reset_valet_pin'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/16459778504118161/command/reset_valet_pin"
{"response":{"reason":"","result":true}}
Wakes up the car from a sleeping state.
curl -X POST -H 'Authorization: Bearer <auth_token_goes_here>' -H 'Content-Type: application/json' 'https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/wake_up'
curl -X POST -H "Authorization: Bearer <auth_token_goes_here>" -H "Content-Type: application/json" "https://owner-api.teslamotors.com/api/1/vehicles/<vehicle_id_goes_here>/command/wake_up"
{
"reason": "",
"result": true
}