Skip to main content
A type-safe API client for the Cloudflare API, auto-generated from the official OpenAPI specification with full TypeScript support.

Features

  • Type-Safe - Full TypeScript support with auto-generated types from OpenAPI spec
  • Complete API Coverage - All Cloudflare API endpoints supported
  • Auto-Updated - Daily regeneration from upstream OpenAPI specs

Installation

Usage

Basic Usage

With API Key Authentication

Type Exports

API Reference

The client exposes all Cloudflare API endpoints including:
  • Zones - Manage DNS zones
  • DNS Records - Create, update, and delete DNS records
  • Workers - Deploy and manage Cloudflare Workers
  • Pages - Cloudflare Pages projects and deployments
  • R2 - Object storage management
  • KV - Key-Value storage operations
  • D1 - SQL database operations
  • Firewall Rules - Security and firewall configuration
  • Load Balancers - Traffic management
  • And more…
For the complete API reference, see the Cloudflare API documentation.