Soenneker.Cloudflare.OpenApiClient 4.0.570

Prefix Reserved
dotnet add package Soenneker.Cloudflare.OpenApiClient --version 4.0.570
                    
NuGet\Install-Package Soenneker.Cloudflare.OpenApiClient -Version 4.0.570
                    
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.570" />
                    
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.570" />
                    
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.570
                    
#r "nuget: Soenneker.Cloudflare.OpenApiClient, 4.0.570"
                    
#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.570
                    
#: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.570
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Cloudflare.OpenApiClient&version=4.0.570
                    
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

An async thread-safe singleton for the Cloudflare OpenApiClient

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.570 35 9/3/2026
4.0.568 80 9/2/2026
4.0.565 107 8/31/2026
4.0.564 10,026 7/28/2026
4.0.563 3,545 7/16/2026
4.0.562 6,576 6/18/2026
4.0.561 4,969 6/5/2026
4.0.560 2,577 5/18/2026
4.0.559 575 5/16/2026
4.0.558 561 5/15/2026
4.0.557 514 5/14/2026
4.0.556 397 5/13/2026
4.0.555 1,517 5/8/2026
4.0.553 5,766 4/10/2026
4.0.552 528 4/9/2026
4.0.551 502 4/8/2026
4.0.550 597 4/7/2026
4.0.549 543 4/6/2026
4.0.548 645 4/5/2026
4.0.547 689 4/4/2026
Loading failed

Update dependency Microsoft.Kiota.Serialization.Multipart to 2.1.0 (#697)