API keys

Creating and revoking the keys your apps use to read your customers' data.

The API keys page lists your business's API keys. Your apps send a key with every API request.

Creating a key

Admins select Create key, give it a name of up to 100 characters, for example the app that uses it, and pick its permissions. Pick at least one. The picker offers exactly what a key can do: read your business's default vehicle config, your webhook, your customers' products, and their vehicle and energy product information; send commands; change your webhook; remove customers; and change streaming config. The form starts with read-only access: reading the default vehicle config, the webhook, your customers' products, and their vehicle and energy product information. Add commands, changing the webhook, removing customers or changing streaming config only for an app that needs them. You cannot change a key's permissions later; create another key instead.

The full key is shown once, with a Copy button. Store it somewhere safe; it cannot be shown to you again. If you lose a key, revoke it and create another.

After that, the page shows each key by its name, a masked form of its value, the date it was created, the date it was last used and how many permissions it holds.

A key belongs to your business and can do only what its permissions and your business's customer access both allow. Treat it like a password: keep it on your servers, and never put it in a web page or mobile app.

Base URL

The page also shows the base URL https://api.teslemetry.pro. Requests to it reach your business's home region automatically. See Base URLs.

Revoking a key

Admins select Revoke next to a key and confirm. The key stops working at once, and any app that uses it loses access. You cannot undo this.

Connected agents

Below your keys, Connected agents lists the AI agents that your users have connected to your business. Each agent shows the user who approved it and the permissions it holds.

Admins select Revoke next to an agent and confirm. The agent stops working at once. Revoking ends the agent for every business that user approved it under, not only yours.