Integrations / Infrastructure

Cloudflare

Look up zones and DNS records, create and update DNS records, purge cached content, and trigger workflows from Cloudflare notifications.

7 tools 18 trigger events

Tools

cloudflare.list_zones

List zones (domains), optionally filtered by name or status. Zone IDs are 32-character hex strings.

namestatusper_pagepage

cloudflare.list_dns_records

List a zone's DNS records, optionally filtered by name, type or content. Record IDs are 32-character hex strings.

zone_id*nametypecontentsearchper_page

cloudflare.create_dns_record writes

Create a DNS record in a zone.

zone_id*type*name*content*ttlproxiedprioritycomment

cloudflare.update_dns_record writes

Change some fields of a DNS record, leaving the others as they are.

zone_id*dns_record_id*typenamecontentttlproxiedcomment

cloudflare.purge_cache writes

Purge cached content from a zone, by URL, cache tag, hostname or prefix, or everything.

zone_id*filestagshostsprefixespurge_everything

cloudflare.api_get

Send a GET request to any Cloudflare API path under https://api.cloudflare.com/client/v4 and return the response. For endpoints the named tools don't cover.

path*params

cloudflare.api_request writes

Send a POST, PUT, PATCH or DELETE request to any Cloudflare API path under https://api.cloudflare.com/client/v4.

method*path*paramsbody

Tick Allow raw writes on the connection to add api_request, which can send POST, PUT, PATCH and DELETE requests to any Cloudflare API path.

Connect

  1. In the Cloudflare dashboard, open My Profile → API Tokens and create a token with Zone Read, plus DNS Edit and Cache Purge for the zones your workflows change.
  2. Paste the token on the connection.
  3. To trigger workflows, open Notifications → Destinations, add a generic webhook with the request URL shown on the connection page and a secret you choose, attach it to the notification policies you want, and paste the same secret on the connection.

Credentials

API token Webhook secret

Cloudflare API docs

Triggers

In the Cloudflare dashboard, open Notifications → Destinations, add a generic webhook with this URL and a secret you choose, attach it to your notification policies, and paste the same secret on this connection.

Events

http_alert_origin_errorhttp_alert_edge_erroradvanced_http_alert_errorhealth_check_status_notificationload_balancing_health_alertload_balancing_pool_enablement_alertdos_attack_l7advanced_ddos_attack_l7_alerttraffic_anomalies_alertuniversal_ssl_event_typededicated_ssl_certificate_event_typecustom_ssl_certificate_event_typetunnel_health_eventpages_event_alertworkers_alertincident_alertmaintenance_event_notificationbilling_usage_alert
trigger
kind: cloudflare connection: cloudflare events: [http_alert_origin_error] policies: [...] states: [...] accounts: [...]

Your next automation is one sentence away.

14-day free trial with $5 of built-in AI included. Cancel anytime.