---
title: Accessing agent keys
summary: null
url: >-
  https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/agent-management/accessing-agent-keys
---

For each site (also known as workspace), the Next-Gen WAF agent has a set of keys or credentials that authorize it for the site (workspace).

- The **Agent Access Key** (`accesskeyid`) identifies the site (workspace) that the agent is configured for.
- The **Agent Secret Key** (`secretaccesskey`) authenticates and authorizes the agent.

You'll need these keys to [start](https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/agent-management/getting-started-with-the-agent#installing-the-agent) and [update](https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/agent-management/getting-started-with-the-agent#upgrading-the-agent) the agent.

## Viewing agent keys

To view the agent keys for a site (workspace), complete the following steps:

### Next Gen Waf Control Panel

1.   Log in to the [Next-Gen WAF control panel](https://dashboard.signalsciences.net).

2.   From the **Sites** menu, select a site if you have more than one site.

3. Click **Agents** in the site navigation bar.
4. Click **View agent keys**.
5. _(Optional)_ Click **Copy** to copy the Agent Access Key (`accesskeyid`) and Agent Secret Key (`secretaccesskey`).

### Fastly Control Panel

1.   Log in to the [Fastly control panel](https://manage.fastly.com).

2.   Go to **Security** > **Next-Gen WAF** > [**Deployment**](https://manage.fastly.com/security/ngwaf/deployment).

3.   From the workspaces bar, click the menu <span class="inline-icons"><img src="/img/icons/chevron-down.png" alt="Menu icon" /></span> to the right of the workspace name and select a workspace.

4. Click **View agent keys**.
5. _(Optional)_ Click **Copy** to copy the Agent Access Key (`accesskeyid`) and Agent Secret Key (`secretaccesskey`).

## Related content

- [Getting started with the agent](https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/agent-management/getting-started-with-the-agent)
- [Using an API with the Next-Gen WAF](https://www.fastly.com/documentation/guides/next-gen-waf/developer/using-an-api-with-the-next-gen-waf)
