---
title: Redactions
summary: Next-Gen WAF automatically redacts known patterns of sensitive information. In addition to automatic redactions, the redactions API allows you to specify additional fields to redact from requests.
url: https://www.fastly.com/documentation/reference/api/security/redactions
---

Next-Gen WAF automatically redacts known patterns of sensitive information. In addition to automatic redactions, the redactions API allows you to specify additional fields to redact from requests.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `field` | string | The name of the field that should be redacted. |
| `id` | string | A base62-encoded representation of a UUID used to uniquely identify a redaction. (Read-only) |
| `type` | string | The type of field that is being redacted. |

## API endpoints

### List redactions

**GET** `/security/workspaces/{workspace_id}/redactions`

List redactions in a workspace.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `limit` | integer | query | No | Limit how many results are returned. |
| `workspace_id` | string | path | Yes | The ID of the workspace. |

### Create redaction

**POST** `/security/workspaces/{workspace_id}/redactions`

Create a redaction in a workspace.

**Parameters:**

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

### Retrieve redaction

**GET** `/security/workspaces/{workspace_id}/redactions/{redaction_id}`

Get a redaction in a workspace.

**Parameters:**

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

### Remove redaction

**DELETE** `/security/workspaces/{workspace_id}/redactions/{redaction_id}`

Remove a redaction from a workspace.

**Parameters:**

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

### Edit redaction

**PATCH** `/security/workspaces/{workspace_id}/redactions/{redaction_id}`

Change attributes of a redaction in a workspace.

**Parameters:**

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

