Developers

Use your own Tesla in your scripts, Home Assistant and IFTTT. An Orbit subscription includes a personal API and webhooks for the cars on your account.

API tokens

In Orbit, open Garage › Integrations & API › API tokens and make a token. Orbit shows it once; it keeps only a hash. A token reaches your cars’ status, refresh and commands, and nothing else: not your account, community or settings. You can keep 5 tokens and revoke any of them there.

Send it as a bearer token:

curl https://api.driveorbit.app/vehicles \
  -H "Authorization: Bearer orb_YOUR_TOKEN"

Endpoints

  • GET /vehicles: your cars, and cars shared with you.
  • GET /vehicles/{vin}: a car’s status as Orbit last read it, without waking the car.
  • POST /vehicles/{vin}/refresh: reads the car now, waking it if it sleeps. Wakes count toward your plan’s monthly wakes.
  • POST /vehicles/{vin}/commands/{name}: sends a command, such as lock, unlock, climate_on, climate_off, charge_start, charge_stop, or charge_limit with {"percent": 80}. Commands follow your car’s pairing and plan, as in the app.

Your tokens make 30 requests a minute together; past that, the API answers 429 with Retry-After. Errors come as {"error": {"code": "…", "message": "…"}}. Without an active plan, the car routes answer 402.

Home Assistant

Put the token in secrets.yaml as orbit_token: "Bearer orb_…", then add sensors and commands to configuration.yaml. The app writes the full configuration for your car under Integrations & API › Home Assistant.

rest:
  - resource: https://api.driveorbit.app/vehicles/YOUR_VIN
    headers:
      Authorization: !secret orbit_token
    scan_interval: 300
    sensor:
      - name: Orbit battery
        value_template: "{{ value_json.snapshot.battery_level }}"
        unit_of_measurement: "%"
        device_class: battery

rest_command:
  orbit_lock:
    url: https://api.driveorbit.app/vehicles/YOUR_VIN/commands/lock
    method: POST
    headers:
      Authorization: !secret orbit_token

Webhooks

Under Integrations & API › IFTTT & webhooks, add an https address and pick its events: charge_complete, sentry_alarm or sentry_watching. Orbit posts each event as JSON with an X-Orbit-Event header the moment it happens. Sentry watching comes at most once every 10 minutes. A failed delivery is tried twice more; after 20 failures in a row, the webhook turns off until you turn it back on. Addresses on private networks aren’t allowed.

{
  "event": "charge_complete",
  "vin": "5YJ3…",
  "car": "Blue Thunder",
  "message": "Charged to 80% · +32 kWh in 2 h 10 m",
  "at": "2026-10-20T08:30:00Z",
  "value1": "Blue Thunder",
  "value2": "Charged to 80% · +32 kWh in 2 h 10 m",
  "value3": "2026-10-20T08:30:00Z"
}

IFTTT: make an applet whose trigger is Webhooks › Receive a web request, and add https://maker.ifttt.com/trigger/EVENT_NAME/with/key/YOUR_KEY in Orbit. Value1 is the car, Value2 what happened, Value3 the time.

Signatures: each delivery has X-Orbit-Signature: t=TIME,v1=SIGNATURE, where SIGNATURE is the hex HMAC-SHA256 of TIME.BODY with the webhook’s signing secret, shown once when you add it.

// Node: check X-Orbit-Signature before trusting a delivery.
const [t, v1] = header.split(',').map((part) => part.split('=')[1]);
const mac = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(v1))
  && Math.abs(Date.now() / 1000 - Number(t)) < 300;

Help

Questions or a request for an endpoint: write to support@driveorbit.app. Use of the API follows the Terms of Use; what webhooks send is described in the Privacy Policy.