---
title: Filters
---

[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**

# Filters

##### [List filters](https://developers.cloudflare.com/api/go/resources/filters/methods/list)

Deprecated

client.Filters.List(ctx, params) (\*V4PagePaginationArray\[[FirewallFilter](<https://developers.cloudflare.com/api/go/resources/filters#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/filters

##### [Get a filter](https://developers.cloudflare.com/api/go/resources/filters/methods/get)

Deprecated

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

GET/zones/{zone\_id}/filters/{filter\_id}

##### [Create filters](https://developers.cloudflare.com/api/go/resources/filters/methods/create)

Deprecated

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

POST/zones/{zone\_id}/filters

##### [Update a filter](https://developers.cloudflare.com/api/go/resources/filters/methods/update)

Deprecated

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

PUT/zones/{zone\_id}/filters/{filter\_id}

##### [Delete a filter](https://developers.cloudflare.com/api/go/resources/filters/methods/delete)

Deprecated

client.Filters.Delete(ctx, filterID, body) (\*[FilterDeleteResponse](<https://developers.cloudflare.com/api/go/resources/filters#(resource)%20filters%20%3E%20(model)%20FilterDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/filters/{filter\_id}

##### [Update filters](https://developers.cloudflare.com/api/go/resources/filters/methods/bulk_update)

Deprecated

client.Filters.BulkUpdate(ctx, params) (\*SinglePage\[[FirewallFilter](<https://developers.cloudflare.com/api/go/resources/filters#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)>)], error)

PUT/zones/{zone\_id}/filters

##### [Delete filters](https://developers.cloudflare.com/api/go/resources/filters/methods/bulk_delete)

Deprecated

client.Filters.BulkDelete(ctx, params) (\*\[] [FilterBulkDeleteResponse](<https://developers.cloudflare.com/api/go/resources/filters#(resource)%20filters%20%3E%20(model)%20FilterBulkDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/filters

##### ModelsExpand Collapse

<details>

<summary>

type FirewallFilter struct{…}

</summary>

ID stringOptional

The unique identifier of the filter.

maxLength32

minLength32

<a href="#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Description stringOptional

An informative summary of the filter.

maxLength500

<a href="#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Expression stringOptional

The filter expression. For more information, refer to <a href="https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/">Expressions</a>.

<a href="#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

Paused boolOptional

When true, indicates that the filter is currently paused.

<a href="#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)%20%3E%20(property)%20paused">Link to this property</a>

Ref stringOptional

A short reference tag. Allows you to select related filters.

maxLength50

<a href="#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)%20%3E%20(property)%20ref">Link to this property</a>

</details>

[Link to this property](<#(resource)%20filters%20%3E%20(model)%20firewall_filter%20%3E%20(schema)>)