---
title: Next-Gen WAF
summary: >-
  These endpoints allow you to enable, disable, configure, and check the
  enablement and configuration status of the Next-Gen WAF product on your
  services.
url: https://www.fastly.com/documentation/reference/api/products/ngwaf
---

These endpoints allow you to enable, disable, configure, and check the enablement and configuration status of the Next-Gen WAF product on your services.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `_links` | object |  |
| `customer` | object |  |
| `product` | object |  |
| `services` | array | A list of services with the Next-Gen WAF enabled. |
| `configuration` | object |  |
| `service` | object |  |

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `traffic_ramp` | string | The percentage of traffic to inspect. |
| `workspace_id` | string | The workspace to link. |

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `traffic_ramp` | string | The percentage of traffic to inspect. |
| `workspace_id` | string | The workspace to link. |

## API endpoints

### Get product enablement status

**GET** `/enabled-products/v1/ngwaf/services/{service_id}`

Get the enablement status of the Next-Gen WAF product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Enable product

**PUT** `/enabled-products/v1/ngwaf/services/{service_id}`

Enable the Next-Gen WAF product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Disable product

**DELETE** `/enabled-products/v1/ngwaf/services/{service_id}`

Disable the Next-Gen WAF product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Get configuration

**GET** `/enabled-products/v1/ngwaf/services/{service_id}/configuration`

Get configuration of the Next-Gen WAF product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Update configuration

**PATCH** `/enabled-products/v1/ngwaf/services/{service_id}/configuration`

Update configuration of the Next-Gen WAF product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Get services with product enabled

**GET** `/enabled-products/v1/ngwaf/services`

Get all the services which have the Next-Gen WAF product enabled.
