Soenneker.Cloudflare.OpenApiClient 4.0.565

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Cloudflare.OpenApiClient --version 4.0.565
                    
NuGet\Install-Package Soenneker.Cloudflare.OpenApiClient -Version 4.0.565
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Cloudflare.OpenApiClient" Version="4.0.565" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Cloudflare.OpenApiClient" Version="4.0.565" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Cloudflare.OpenApiClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Cloudflare.OpenApiClient --version 4.0.565
                    
#r "nuget: Soenneker.Cloudflare.OpenApiClient, 4.0.565"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Cloudflare.OpenApiClient@4.0.565
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Cloudflare.OpenApiClient&version=4.0.565
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Cloudflare.OpenApiClient&version=4.0.565
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Cloudflare.OpenApiClient

A Kiota-generated .NET client for Cloudflare's v4 API.

Installation

dotnet add package Soenneker.Cloudflare.OpenApiClient

For dependency injection, bearer-token configuration, and managed HTTP-client reuse, install Soenneker.Cloudflare.Utils.Client and register its client utility.

dotnet add package Soenneker.Cloudflare.Utils.Client
using Soenneker.Cloudflare.Utils.Client.Registrars;

services.AddCloudflareClientUtilAsSingleton();

Direct construction

using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Cloudflare.OpenApiClient;
using Soenneker.Cloudflare.OpenApiClient.Models;

var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", "your-api-token");

var adapter = new HttpClientRequestAdapter(
    new AnonymousAuthenticationProvider(),
    httpClient: httpClient);

var cloudflare = new CloudflareOpenApiClient(adapter);

Zones0Get200? response = await cloudflare.Zones[zoneId].GetAsync(
    cancellationToken: cancellationToken);

Keep the HttpClient, adapter, and generated client long-lived. Do not attach Cloudflare credentials to an HTTP client that can send requests to unrelated hosts.

Generated surface

The root client mirrors Cloudflare's account-, zone-, user-, and certificate-level API paths. The generated API is very large, and names can reflect schema wording rather than idiomatic C# conventions. Endpoint methods typically accept a request-configuration callback and cancellation token.

Models, request builders, and nullable response shapes can change when Cloudflare's OpenAPI document changes. Review package upgrades when your code depends on generated names. Keep custom behavior outside the generated source tree.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Cloudflare.OpenApiClient:

Package Downloads
Soenneker.Cloudflare.Utils.Client

Thread-safe caching and configuration for generated Cloudflare OpenAPI clients.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.574 722 9/15/2026
4.0.573 2,527 9/12/2026
4.0.572 1,914 9/8/2026
4.0.571 3,497 9/4/2026
4.0.570 1,290 9/3/2026
4.0.568 109 9/2/2026
4.0.565 131 8/31/2026
4.0.564 10,571 7/28/2026
4.0.563 3,552 7/16/2026
4.0.562 6,577 6/18/2026
4.0.561 4,974 6/5/2026
4.0.560 2,597 5/18/2026
4.0.559 577 5/16/2026
4.0.558 565 5/15/2026
4.0.557 518 5/14/2026
4.0.556 398 5/13/2026
4.0.555 1,522 5/8/2026
4.0.553 5,772 4/10/2026
4.0.552 535 4/9/2026
4.0.551 504 4/8/2026
Loading failed

Improve generated Cloudflare client documentation