Cloudflare Policies API

The policies API from Cloudflare — 3 operation(s) for policies.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /accounts/{account_id}/data-security/posture/policies List data security posture policies · List policy configurations #
Ask an LLM
“Which automated security policies are configured for my account?”
“Can I see every data security posture policy and the integrations it applies to?”
Tell an agent
List data security posture policies in account {account}.
Show all data security policies that apply to every integration.
POST /accounts/{account_id}/data-security/posture/policies Create a data security posture policy · Create a new policy configuration #
Ask an LLM
“How do I auto-remediate findings of a particular type across all integrations?”
“Can a new policy be limited to certain integrations instead of all of them?”
Tell an agent
Create a data security policy named {name} for account {account} that applies to all integrations.
Create a policy {name} for account {account} that only applies to integrations {integrations}.
GET /accounts/{account_id}/data-security/posture/policies/logs List data security posture policy invocation logs · List policy invocation logs (deprecated) #
Ask an LLM
“Which security policies ran against findings in the last day?”
“Can I filter policy invocation logs by integration or policy name?”
Tell an agent
List data security posture policy logs in account {account}.
Show policy logs for account {account} since {since} and until {until}.
DELETE /accounts/{account_id}/data-security/posture/policies/{policy_id} Delete a data security posture policy · Delete a policy configuration #
Ask an LLM
“How do I remove a data security policy I no longer use?”
“Can I delete a policy configuration by its ID?”
Tell an agent destructive · confirm first
Delete data security policy {policy} from account {account}.
Remove policy {policy} permanently.
GET /accounts/{account_id}/data-security/posture/policies/{policy_id} Get a data security posture policy · Get a policy configuration by ID #
Ask an LLM
“What actions does a specific data security policy run when triggered?”
“Can I look up one policy configuration by its ID?”
Tell an agent
Get data security policy {policy} in account {account}.
Show the remediation and webhook actions of policy {policy}.
PUT /accounts/{account_id}/data-security/posture/policies/{policy_id} Update a data security posture policy · Update a policy configuration #
Ask an LLM
“How do I change the actions a data security policy runs?”
“Can I rename or disable an existing policy?”
Tell an agent
Update data security policy {policy} in account {account} with actions {actions}.
Rename policy {policy} to {name} in account {account}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudflare:cloudflare-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudflare-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Welcome to Cloudflare's API documentation site.
  license:
    name: BSD-3-Clause
    url: https://opensource.org/licenses/BSD-3-Clause
  title: Cloudflare Policies API
  version: 4.0.0
servers:
- description: Client API
  url: https://api.cloudflare.com/client/v4
security:
- api_email: []
  api_key: []
- api_token: []
- user_service_key: []
tags:


# --- truncated at 32 KB (81 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-policies-api-openapi.yml