> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-docs-edge-scripting-astro-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API Keys

> Manage your bunny.net API key for programmatic access.

Your API key lets you programmatically update your zones and account settings via the [bunny.net API](/api-reference).

You can find your API key at [Account > API Key](https://dash.bunny.net/account/api-key).

<Frame>
  <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/nZugejQ2Vui9MLhG/images/accounts-and-billing/api-key.png?fit=max&auto=format&n=nZugejQ2Vui9MLhG&q=85&s=a2aa0cb822199a43d800331129963f81" alt="API key" width="1448" height="372" data-path="images/accounts-and-billing/api-key.png" />
</Frame>

## Viewing your API key

Your API key is hidden by default. Click the eye icon to reveal it, or the copy icon to copy it to your clipboard.

<Frame>
  <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/nZugejQ2Vui9MLhG/images/accounts-and-billing/reveal-api-key.png?fit=max&auto=format&n=nZugejQ2Vui9MLhG&q=85&s=41ef8d906a93daa1f8d0e3fa278a0b78" alt="Reveal API key" width="576" height="234" data-path="images/accounts-and-billing/reveal-api-key.png" />
</Frame>

## Regenerating your API key

If your API key is compromised, click the refresh icon to generate a new one. You'll be asked to confirm before the key is reset.

<Frame>
  <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/nZugejQ2Vui9MLhG/images/accounts-and-billing/reset-api-key.png?fit=max&auto=format&n=nZugejQ2Vui9MLhG&q=85&s=04d684d1bc4318eb9838fa3c1d6f8a73" alt="Reset API key" width="510" height="242" data-path="images/accounts-and-billing/reset-api-key.png" />
</Frame>

<Warning>
  Resetting your API key will disable the old key immediately. Any applications
  or scripts using the old key will stop working.
</Warning>

## Keep your API key safe

Your API key has full access to your account. Never share it publicly or commit it to version control.

<Note>
  This is your account-level API key. Storage zones, Stream libraries, and
  databases each have their own separate API keys for accessing those specific
  services.
</Note>
