Pair a Tesla Fleet API application's virtual key and OAuth scopes before it can send charging commands

domain: developer.tesla.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register the developer application in the Tesla developer dashboard, configure the allowed redirect URI, and complete third-party/domain verification hosting the required public key file.
  2. Take the vehicle owner through the OAuth authorization flow requesting the vehicle_charging_cmds (and related vehicle_cmds) scopes so the resulting token is authorized for charging control, not just telemetry read scopes.
  3. Generate a command-signing key pair using Tesla's vehicle-command tooling and have the vehicle owner add the application's virtual key to their vehicle via the Tesla mobile app's add-key flow, which requires the vehicle to be physically nearby (BLE) for pairing.
  4. Confirm the virtual key was accepted by checking the vehicle's key list or by issuing a low-risk signed command and validating a success response before relying on it for production charging control.
  5. Store the OAuth refresh token and the signing private key separately with different rotation/handling policies, since losing the signing key requires re-pairing the virtual key on every vehicle, while a refresh token can simply be reissued.

Known gotchas

Related routes

Pair a virtual key for Tesla Fleet API commands
developer.tesla.com · 6 steps · unrated
Request only the minimum Tesla Fleet API OAuth scopes your integration needs, mapping each scope to the specific data and command categories it unlocks
developer.tesla.com · 5 steps · unrated
send signed vehicle charging commands (start, stop, set charge limit) to a Tesla vehicle via the Tesla Fleet API
developer.tesla.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans