# API Keys

Source: https://docs.screenshotlens.com/docs/dashboard/api-keys
Summary: Create, name, rotate, and revoke the keys your integration uses.

## Create a key

Open **API keys** at [app.screenshotlens.com](https://app.screenshotlens.com) and create a key named after the system that will use it, such as `Production`, `Staging`, `CI`, or `Internal previews`. Store it in your server environment or secret manager as soon as it is created.

## Rotate a key

1. Create a replacement key.
2. Deploy it to your application.
3. Confirm the new requests appear in [Usage Logs](https://docs.screenshotlens.com/docs/dashboard/usage-logs).
4. Revoke the old key.

## Keep keys safe

* Keep production keys out of browser code and out of source control.
* Revoke any key that has been exposed or no longer has an owner.
* Give each system its own key, so the logs stay readable.

[Authentication](https://docs.screenshotlens.com/docs/api/authentication) covers how a key authorizes a request.
