# Cloudflare Api Key

Cloudflare provides a suite of services to enhance the security, performance, and reliability of websites and applications.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Cloudflare Api Key** authenticates with an API key. Generate the credential in your Cloudflare Api Key account, then paste it into FlyMyAI the first time an agent uses a Cloudflare Api Key action.

[Get your Cloudflare Api Key credential →](https://dash.cloudflare.com/profile/api-tokens)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Cloudflare API Token` | Your Cloudflare API token for authentication (recommended) _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `CLOUDFLARE_API_KEY_CREATE_DNS_RECORD` | Tool to create a new DNS record in a Cloudflare zone. Use when you need to add a record (A, CNAME, TXT, MX, etc.) to a specified zone. | `zone_id`, `type`, `name` |
| `CLOUDFLARE_API_KEY_CREATE_LOCKDOWN_RULE` | Tool to create a Zone Lockdown rule. Use when you need to restrict access to specific URL patterns to defined IPs/CIDR ranges. Use after confirming zone_id. | `zone_id`, `configurations`, `urls` |
| `CLOUDFLARE_API_KEY_CREATE_RULESET` | Tool to create an account- or zone-scoped ruleset. Use after defining your ruleset details and selecting the correct scope. | `accounts_or_zones`, `account_or_zone_id`, `kind`, `name`, `phase` |
| `CLOUDFLARE_API_KEY_CREATE_RULE_IN_RULESET` | Tool to add a rule to an existing ruleset. Use when you need to append or insert a new rule in a Cloudflare ruleset. | `accounts_or_zones`, `ruleset_id`, `rule` |
| `CLOUDFLARE_API_KEY_DELETE_DNSSEC` | Tool to delete DNSSEC records for a zone. Use after disabling DNSSEC at the registrar to remove DNSSEC configuration. | `zone_id` |
| `CLOUDFLARE_API_KEY_DELETE_DNS_RECORD` | Tool to delete a DNS record. Use when you need to remove a specific DNS record from a zone after confirming both zone and record IDs. | `zone_id`, `dns_record_id` |
| `CLOUDFLARE_API_KEY_DELETE_RULESET` | Tool to delete all versions of a ruleset. Use when you need to remove a ruleset from an account or zone after confirming no references exist. | `accounts_or_zones`, `account_or_zone_id`, `ruleset_id` |
| `CLOUDFLARE_API_KEY_DELETE_RULE_FROM_RULESET` | Tool to delete a specific rule from a ruleset. Use when you need to remove an outdated or incorrect rule from an account or zone ruleset after confirming IDs. | `accounts_or_zones`, `account_or_zone_id`, `ruleset_id`, `rule_id` |
| `CLOUDFLARE_API_KEY_DELETE_ZONE` | Tool to delete an existing zone. Use after confirming the zone_id to permanently remove the zone. | `zone_id` |
| `CLOUDFLARE_API_KEY_GET_ENTRYPOINT_RULESET_VERSION` | Tool to get a specific version of an entry point ruleset. Use after determining the ruleset phase and version. | `accounts_or_zones`, `account_or_zone_id`, `ruleset_phase`, `ruleset_version` |
| `CLOUDFLARE_API_KEY_GET_LOCKDOWN_RULE` | Tool to get a Zone Lockdown rule. Use when you need to fetch details of a specific lockdown rule by its ID within a Cloudflare zone. | `zone_id`, `lockdown_id` |
| `CLOUDFLARE_API_KEY_GET_REGIONAL_TIERED_CACHE` | Tool to get the regional tiered cache setting for a zone. Use when you need to verify if regional tiered cache is enabled for performance optimization after zone activation. | `zone_id` |
| `CLOUDFLARE_API_KEY_GET_RULESET` | Tool to fetch the latest version of a ruleset by ID. Use after you have the ruleset scope and ID. | `accounts_or_zones`, `ruleset_id` |
| `CLOUDFLARE_API_KEY_GET_ZONE_DETAILS` | Tool to get details for a specific zone. Use when you need detailed zone metadata by ID. | `zone_id` |
| `CLOUDFLARE_API_KEY_LIST_DNS_RECORDS` | Tool to list DNS records for a given Cloudflare zone. | `zone_id` |
| `CLOUDFLARE_API_KEY_LIST_ZONES` | Tool to list, search, sort, and filter Cloudflare zones. Use when you need to retrieve a paginated list of zones available to the authenticated user. | - |
| `CLOUDFLARE_API_KEY_OVERWRITE_DNS_RECORD` | Tool to completely overwrite a DNS record. Use when you need to replace all record details after confirming record type and name. | `zone_id`, `dns_record_id`, `type`, `name` |
| `CLOUDFLARE_API_KEY_RERUN_ZONE_ACTIVATION_CHECK` | Tool to trigger a new activation check for a PENDING zone. Use after initial zone creation to revalidate DNS activation. Limited rate: every 5 minutes on paygo/Enterprise or hourly on Free. | `zone_id` |
| `CLOUDFLARE_API_KEY_UPDATE_DNSSEC_STATUS` | Tool to update DNSSEC configuration for a zone. Use when you need to enable or disable DNSSEC or adjust DNSSEC options after confirming the zone ID. | `zone_id` |
| `CLOUDFLARE_API_KEY_UPDATE_LOCKDOWN_RULE` | Tool to update a zone lockdown rule. Use when you need to modify the IP or URL settings of an existing Zone Lockdown rule after confirming the rule exists. | `zone_id`, `lock_downs_id`, `configurations`, `urls` |
| `CLOUDFLARE_API_KEY_UPDATE_RULESET` | Tool to update a Cloudflare ruleset, creating a new version. Use when you need to modify ruleset description or rules list. | `accounts_or_zones`, `account_or_zone_id`, `ruleset_id` |
| `CLOUDFLARE_API_KEY_UPDATE_RULE_IN_RULESET` | Tool to update a specific rule in a ruleset. Use when you need to modify a rule's configuration or reorder it after reviewing its current settings. | `accounts_or_zones`, `account_or_zone_id`, `ruleset_id`, `rule_id` |
| `CLOUDFLARE_API_KEY_UPDATE_ZONE` | Tool to edit a Cloudflare zone. Use when you need to update a single zone property at a time. Ensure only one of paused, type, or vanity_name_servers is provided per call. | `zone_id` |
| `CLOUDFLARE_API_KEY_UPLOAD_FILE_TO_S3` | Tool to upload arbitrary file content to the app’s temporary R2/S3 bucket. Use when you need to stage files for actions requiring FileUploadable. | `file_name`, `content` |

## Links

- [Cloudflare Api Key website](https://www.cloudflare.com/)
- [Get API key / credential](https://dash.cloudflare.com/profile/api-tokens)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
