---
title: Content Scanning
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Content Scanning

##### [Enable Content Scanning for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/methods/enable)

client.ContentScanning.Enable(ctx, body) (\*[ContentScanningEnableResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20ContentScanningEnableResponse%20%3E%20(schema)>), error)

POST/zones/{zone\_id}/content-upload-scan/enable

##### [Disable Content Scanning for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/methods/disable)

client.ContentScanning.Disable(ctx, body) (\*[ContentScanningDisableResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20ContentScanningDisableResponse%20%3E%20(schema)>), error)

POST/zones/{zone\_id}/content-upload-scan/disable

##### [Update the Content Scanning status for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/methods/create)

client.ContentScanning.New(ctx, params) (\*[ContentScanningNewResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20ContentScanningNewResponse%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/content-upload-scan/settings

##### [Update the Content Scanning status for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/methods/update)

client.ContentScanning.Update(ctx, params) (\*[ContentScanningUpdateResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20ContentScanningUpdateResponse%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/content-upload-scan/settings

##### [Get the Content Scanning status for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/methods/get)

client.ContentScanning.Get(ctx, query) (\*[ContentScanningGetResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20ContentScanningGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/content-upload-scan/settings

#### Content ScanningPayloads

##### [List the Content Scanning custom expressions of a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/subresources/payloads/methods/list)

client.ContentScanning.Payloads.List(ctx, query) (\*SinglePage\[[PayloadListResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20PayloadListResponse%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/content-upload-scan/payloads

##### [Create Content Scanning custom expressions for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/subresources/payloads/methods/create)

client.ContentScanning.Payloads.New(ctx, params) (\*SinglePage\[[PayloadNewResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20PayloadNewResponse%20%3E%20(schema)>)], error)

POST/zones/{zone\_id}/content-upload-scan/payloads

##### [Delete a Content Scanning custom expression from a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/subresources/payloads/methods/delete)

client.ContentScanning.Payloads.Delete(ctx, expressionID, body) (\*SinglePage\[[PayloadDeleteResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20PayloadDeleteResponse%20%3E%20(schema)>)], error)

DELETE/zones/{zone\_id}/content-upload-scan/payloads/{expression\_id}

##### [Update a Content Scanning custom expression for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/subresources/payloads/methods/update)

client.ContentScanning.Payloads.Update(ctx, expressionID, params) (\*SinglePage\[[PayloadUpdateResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20PayloadUpdateResponse%20%3E%20(schema)>)], error)

PATCH/zones/{zone\_id}/content-upload-scan/payloads/{expression\_id}

#### Content ScanningSettings

##### [Get the Content Scanning status for a zone.](https://developers.cloudflare.com/api/go/resources/content_scanning/subresources/settings/methods/get)

client.ContentScanning.Settings.Get(ctx, query) (\*[SettingGetResponse](<https://developers.cloudflare.com/api/go/resources/content_scanning#(resource)%20content_scanning.settings%20%3E%20(model)%20SettingGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/content-upload-scan/settings