---
title: Agent Keys
summary: Agent keys endpoints provide functionality for listing agent configuration keys associated with a workspace.
url: https://www.fastly.com/documentation/reference/api/ngwaf/agent-keys
---

Agent keys endpoints provide functionality for listing agent configuration keys associated with a workspace.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `access_key` | string | Agent configuration access key value. |
| `created_at` | string | Date and time the agent key was created. (Read-only) |
| `is_primary` | boolean | Whether the agent key is the primary key that should be used to configure the agent. |
| `secret_key` | string | Agent configuration secret key value. |
| `updated_at` | string | Date and time the agent key was last updated. (Read-only) |
| `total` | integer | Total number of agent keys. |

## API endpoints

### List agent keys for a workspace

**GET** `/ngwaf/v1/workspaces/{workspace_id}/agent-keys`

List agent keys for a workspace.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `workspace_id` | string | path | Yes | The ID of the workspace. |

