# Get an API key

> How to request a key for the Towers API, and how to look after it.

Every call to the Towers API needs a key. Keys are issued by the Towers team, one per client or environment, so there is no sign-up form.

## Request a key

1. **Write to us** at [towers@vinsa.dev](mailto:towers@vinsa.dev) with:

   - your organisation's name
   - a technical contact
   - what you are building, in a sentence
   - whether you want separate keys for testing and production

2. **Receive your key.** It starts with `twr_` and is sent once. We keep only a fingerprint of it, so we cannot look it up for you later.

3. **Store it on your server** as an environment variable, and make your first call from the [Quickstart](https://towers.vinsa.dev/docs/start/quickstart.md).

## Look after it

- **Keep it server side.** Do not put it in browser code, a mobile app, or a public repository. Anyone who has the key can use the API as you.
- **Use one key per environment.** If a test key leaks, production is unaffected.
- **Tell us if it leaks.** We revoke the old key and issue a new one; the old one stops working immediately.

## If you lose it

We cannot recover a key. Ask for a new one and we will revoke the lost one.

:::note[Running the API yourself?]
If you host your own copy of the Towers API, you issue keys with a command. See [Issue and revoke keys](https://towers.vinsa.dev/docs/operate/keys.md).
:::
