JSON object (2)
Last updated Apr 24, 2026
Filter object structure and properties
A JSON response for the Filters API has this structure:
{
"id": "6f58318e7fa2477a23112e8118c66f61",
"expression": "http.request.uri.path ~ \"^.*/wp-login.php$\" or http.request.uri.path ~ \"^.*/xmlrpc.php$\"",
"paused": true,
"description": "WordPress login paths",
"ref": ""
}
The following table summarizes the object properties:
| Property | Description | Constraints |
|---|---|---|
id<br>String |
A UUIDv4 identifier generated by Cloudflare. | Unique, read only Length: 32 characters |
expression<br>String |
A Rules language expression used to evaluate requests. For more information, refer to Expressions. | |
paused<br>Boolean |
Returns true when the filter is not active. Use ref to enable/disable the filter. |
Default: false |
description<br>String |
An informative summary of the filter. | Maximum length: 500 characters |
ref<br>String |
A short string for tagging filters. | Maximum length: 50 characters |
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/firewall/api/cf-filters/json-object/#page","headline":"JSON object","description":"Review the JSON structure for filter and rule objects.","url":"https://developers.cloudflare.com/firewall/api/cf-filters/json-object/","inLanguage":"en","image":"https://developers.cloudflare.com/firewall/api/cf-filters/json-object/og.png?v=1fe0f48d265d98ee","dateModified":"2026-04-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Create filters or rules with a POST API request. title: POST example image: https://developers.cloudflare.com/firewall/api/cf-filters/post/og.png?v=047b064eb6adf018
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/firewall/llms.txt
Use this file to discover all available pages before exploring further.
Docs