Skip to content

Instantly share code, notes, and snippets.

@timdorr
Created February 11, 2017 14:37
Show Gist options
  • Save timdorr/e89775f21fb29c2ebc7c8aa4c2cacbbf to your computer and use it in GitHub Desktop.
Save timdorr/e89775f21fb29c2ebc7c8aa4c2cacbbf to your computer and use it in GitHub Desktop.
Tesla API Endpoints
{
"AUTHENTICATE": {
"TYPE": "POST",
"URI": "oauth/token",
"AUTH": false
},
"REVOKE_AUTH_TOKEN": {
"TYPE": "POST",
"URI": "oauth/revoke",
"AUTH": true
},
"VEHICLE_LIST": {
"TYPE": "GET",
"URI": "api/1/vehicles",
"AUTH": true
},
"VEHICLE_SUMMARY": {
"TYPE": "GET",
"URI": "api/1/vehicles/{vehicle_id}",
"AUTH": true
},
"VEHICLE_DATA": {
"TYPE": "GET",
"URI": "api/1/vehicles/{vehicle_id}/data",
"AUTH": true
},
"WAKE_UP": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/wake_up",
"AUTH": true
},
"UNLOCK": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/door_unlock",
"AUTH": true
},
"LOCK": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/door_lock",
"AUTH": true
},
"HONK_HORN": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/honk_horn",
"AUTH": true
},
"FLASH_LIGHTS": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/flash_lights",
"AUTH": true
},
"CLIMATE_ON": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/auto_conditioning_start",
"AUTH": true
},
"CLIMATE_OFF": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/auto_conditioning_stop",
"AUTH": true
},
"CHANGE_CLIMATE_TEMPERATURE_SETTING": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/set_temps",
"AUTH": true
},
"CHANGE_CHARGE_LIMIT": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/set_charge_limit",
"AUTH": true
},
"CHANGE_SUNROOF_STATE": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/sun_roof_control",
"AUTH": true
},
"REMOTE_START": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/remote_start_drive",
"AUTH": true
},
"CHARGE_PORT_DOOR_OPEN": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/charge_port_door_open",
"AUTH": true
},
"CHARGE_PORT_DOOR_CLOSE": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/charge_port_door_close",
"AUTH": true
},
"START_CHARGE": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/charge_start",
"AUTH": true
},
"STOP_CHARGE": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/charge_stop",
"AUTH": true
},
"SEND_LOG": {
"TYPE": "POST",
"URI": "api/1/logs",
"AUTH": true
},
"RETRIEVE_NOTIFICATION_PREFERENCES": {
"TYPE": "GET",
"URI": "api/1/notification_preferences",
"AUTH": true
},
"SEND_NOTIFICATION_PREFERENCES": {
"TYPE": "POST",
"URI": "api/1/notification_preferences",
"AUTH": true
},
"RETRIEVE_NOTIFICATION_SUBSCRIPTION_PREFERENCES": {
"TYPE": "GET",
"URI": "api/1/vehicle_subscriptions",
"AUTH": true
},
"SEND_NOTIFICATION_SUBSCRIPTION_PREFERENCES": {
"TYPE": "POST",
"URI": "api/1/vehicle_subscriptions",
"AUTH": true
},
"DEACTIVATE_DEVICE_TOKEN": {
"TYPE": "POST",
"URI": "api/1/device/{device_token}/deactivate",
"AUTH": true
},
"CALENDAR_SYNC": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/upcoming_calendar_entries",
"AUTH": true
},
"SET_VALET_MODE": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/set_valet_mode",
"AUTH": true
},
"RESET_VALET_PIN": {
"TYPE": "POST",
"URI": "api/1/vehicles/{vehicle_id}/command/reset_valet_pin",
"AUTH": true
},
"REFERRAL_DATA": {
"TYPE": "GET",
"URI": "api/1/users/referral_data",
"AUTH": true
},
"AUTH_COMMAND_TOKEN": {
"TYPE": "POST",
"URI": "api/1/users/command_token",
"AUTH": true
},
"DIAGNOSTICS_ENTITLEMENTS": {
"TYPE": "GET",
"URI": "api/1/diagnostics",
"AUTH": true
},
"SEND_DIAGNOSTICS": {
"TYPE": "POST",
"URI": "api/1/diagnostics",
"AUTH": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment