cloudflare-api

Manage Cloudflare DNS, zones, tunnels, and cache via REST API.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/billyfranklim1/claude-skills --skill cloudflare-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-api
Source: https://github.com/billyfranklim1/claude-skills/tree/main/plugins/cloudflare-api/skills/cloudflare-api
Command: npx skills add https://github.com/billyfranklim1/claude-skills --skill cloudflare-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides concise, ready-to-use guidance and HTTP request examples to manage Cloudflare zones, DNS records, tunnels, and cache without having to parse scattered API documentation.

Core Features & Use Cases

  • DNS management: list zones, retrieve zone IDs, and create, update, or delete A and CNAME records via the Cloudflare API.
  • Tunnel and account operations: list and create Cloudflare tunnels and obtain run tokens for connector authentication.
  • Cache control: purge entire zone caches or specific URLs to immediately invalidate CDN content.
  • Use Case: After deploying a service, update DNS to point to the new host, create a tunnel for private access, and purge affected pages to ensure users see the latest content.

Quick Start

Use the cloudflare-api skill to list DNS records for example.com, create or update an A record for api.example.com pointing to the desired IP, and purge the relevant URL using your stored Cloudflare API token.

Frequently Asked Questions about cloudflare-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Cloudflare DNS record creation and updates after a deployment?

To manage Cloudflare DNS, send HTTP requests to the Cloudflare REST API to retrieve zone IDs and create or update A and CNAME records. You need a valid Cloudflare API token with appropriate Zone permissions stored securely.

Can I create a Cloudflare Tunnel and get a connector token via the API?

Yes, you can list and create Cloudflare tunnels and obtain run tokens for connector authentication by sending HTTP requests to the Cloudflare REST API. This requires an API token with appropriate Account permissions to manage tunnel instances.

What's the best way to purge specific URLs from the Cloudflare CDN cache?

The best way to purge Cloudflare cache is to send HTTP requests to the Cloudflare REST API, targeting either specific URLs or the entire zone. This immediately invalidates CDN content using a valid API token with appropriate Zone permissions.

Do I need a specific Cloudflare API token permission level to manage zones and tunnels?

Yes, managing Cloudflare zones, DNS records, and cache requires an API token with Zone permissions, while tunnel operations require Account permissions. The token must be stored securely locally to authenticate HTTP requests consuming and returning JSON.

How does the Cloudflare API handle zone configuration for DevOps automation?

The Cloudflare API handles zone configuration for DevOps automation by exposing REST endpoints that consume and return JSON for DNS and cache management. This allows automated workflows to list zones, patch records, and purge caches during deployments.