# Find your API key and secret

URL: https://pro-weather.com/docs/getting-started/api-credentials

> Where to find the WeatherLink API key and secret, the Ecowitt application key and API key, or the Tempest token that connects your station to Pro Weather.

To connect a station through its vendor's cloud, Pro Weather asks for a key
from your account with that vendor. None of them is your account password, and
each one is free to create. This page shows where each key lives and what to
do when the connection is refused.

## Which key do I need?

| Your station reports to | What Pro Weather asks for | Where you create it |
| --- | --- | --- |
| **WeatherLink** (Davis) | **API key** and **API secret** (a v2 key) | [weatherlink.com/account](https://www.weatherlink.com/account), **API Keys** |
| **Ecowitt** (ecowitt.net) | **Application key** and **API key** | [ecowitt.net](https://www.ecowitt.net/user/index), the **API** section of your profile |
| **WeatherFlow Tempest** | **Personal access token** | [tempestwx.com](https://tempestwx.com/settings/tokens), **Settings → Data Authorizations** |

Not on any of these clouds, or your Ecowitt gateway only uploads to a custom
server? Use an [upload URL](https://pro-weather.com/docs/getting-started/connect-hardware) instead;
it needs no key at all.

## WeatherLink: API key and API secret

1. Sign in at **[weatherlink.com/account](https://www.weatherlink.com/account)**
   with the account your station reports to.
2. Open the **API Keys** section (it may be labelled **WeatherLink v2 API**).
3. Generate a new **v2** key. WeatherLink shows two values, an **API Key** and
   an **API Secret**. Copy both.
4. In setup, paste the first into **API key** and the second into
   **API secret**, then choose **Connect**.

  A v1 key or your weatherlink.com password will not work. The secret is the
  giveaway: only a v2 key comes with one.

Every WeatherLink plan can create a key, including the free Basic plan. Your
plan decides how much past data comes across; see
[WeatherLink plans & your data](https://pro-weather.com/docs/weatherlink-plans). The full walkthrough
is [Connect your WeatherLink station](https://pro-weather.com/docs/getting-started/connect-weatherlink).

## Ecowitt: application key and API key

1. Sign in at **[ecowitt.net](https://www.ecowitt.net/user/index)** and open
   the **API** section of your profile.
2. Copy the **Application Key**.
3. Generate an **API Key** on the same page and copy it.
4. In setup, paste them into **Application key** and **API key** on the
   Ecowitt Cloud card. Leave **Device MAC or IMEI** blank to connect every
   device on the account, then choose **Connect**.

Your station must already upload to ecowitt.net. If it does not appear there,
fix that in the Ecowitt app first, or use an
[upload URL](https://pro-weather.com/docs/getting-started/connect-hardware) instead.

## Tempest: personal access token

1. Sign in at **[tempestwx.com](https://tempestwx.com/settings/tokens)** and
   open **Settings → Data Authorizations**.
2. Create a personal access token and copy it.
3. In setup, paste it into **Personal access token** on the WeatherFlow Tempest
   card. Leave **Station ID** blank to connect every station the token can
   see, then choose **Connect**.

More on both cloud routes: [Connect through a vendor cloud](https://pro-weather.com/docs/getting-started/connect-cloud).

## When the connection is refused

The message under the form tells you which of these happened.

| Message | What it means | What to do |
| --- | --- | --- |
| **Invalid API key or secret** (WeatherLink), or **... rejected those credentials** (Ecowitt, Tempest) | The vendor did not accept the key. | Check it is a **v2** key (WeatherLink), that the key and secret belong together, and that nothing extra was pasted, such as a space at the end. Keys are case-sensitive. When in doubt, generate a fresh key and paste both values again. |
| **No stations found** | The key works, but the account behind it has no station. | Sign in to the vendor's site with the same account and check your station is listed and reporting. A brand-new station can take a few minutes to appear. On Ecowitt or Tempest, also check the optional device or station ID, or leave it blank. |
| **Could not reach ...** | The vendor's service did not answer. | Wait a few minutes and try again. Nothing is wrong with your key. |
| **Too many attempts** | Several tries in a short time. | Wait a few minutes, then try once more with the corrected key. |

Still stuck? Email us and we will connect it with you.

## Is it safe to share?

- **It is not your password.** A key cannot be used to sign in to your
  vendor account, and Pro Weather only uses it to read your weather data. A
  WeatherLink v2 key is read-only.
- **Encrypted when stored.** Pro Weather encrypts every key and secret before
  storing it and never shows it again, not even to you.
- **You can take it back.** Delete or regenerate the key in your vendor
  account and Pro Weather can no longer read new data with it. New readings
  stop until you paste a fresh key on **Setup → Connection** and choose
  **Reconnect**; the readings already archived stay.
- **Keep it private.** Treat the secret or token like a password: do not post
  it in a forum or a screenshot. If it leaks, generate a new one and paste it
  in with **Reconnect**.
