Soenneker.SendGrid.OpenApiClient 11.0.65

Prefix Reserved
dotnet add package Soenneker.SendGrid.OpenApiClient --version 11.0.65
                    
NuGet\Install-Package Soenneker.SendGrid.OpenApiClient -Version 11.0.65
                    
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.SendGrid.OpenApiClient" Version="11.0.65" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.OpenApiClient" Version="11.0.65" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.SendGrid.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.SendGrid.OpenApiClient --version 11.0.65
                    
#r "nuget: Soenneker.SendGrid.OpenApiClient, 11.0.65"
                    
#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.SendGrid.OpenApiClient@11.0.65
                    
#: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.SendGrid.OpenApiClient&version=11.0.65
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.OpenApiClient&version=11.0.65
                    
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

alternate text is missing from this package README image Soenneker.SendGrid.OpenApiClient

Generated request builders and models for SendGrid mail, contacts, lists, templates, suppressions, statistics, settings, webhooks, API keys, and account resources.

Installation

dotnet add package Soenneker.SendGrid.OpenApiClient

Usage

using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.SendGrid.OpenApiClient;

using var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
    new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", apiKey);

var adapter = new HttpClientRequestAdapter(
    new AnonymousAuthenticationProvider(),
    httpClient: httpClient)
{
    BaseUrl = "https://api.sendgrid.com"
};

var client = new SendGridOpenApiClient(adapter);
var scopes = await client.Tsg_scopes_v3.V3.Scopes
    .WithUrl("https://api.sendgrid.com/v3/scopes")
    .GetAsync(cancellationToken: cancellationToken);

SendGrid API keys use the bearer scheme. The anonymous Kiota authentication provider is intentional because the supplied HttpClient already carries the Authorization header.

The source schema groups operations under names such as tsg_scopes_v3, and those group names appear in generated URL templates even though they are not part of SendGrid's public routes. Use the relevant builder's WithUrl method with the documented https://api.sendgrid.com/v3/... endpoint, as shown above.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.SendGrid.OpenApiClient:

Package Downloads
Soenneker.SendGrid.OpenApiClientUtil

Provides a lazily initialized, authenticated SendGrid v3 API client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.65 0 10/30/2026
11.0.64 0 10/30/2026
11.0.63 56 10/28/2026
11.0.62 77 10/27/2026
11.0.61 62 10/27/2026
11.0.60 122 10/26/2026
11.0.59 97 10/26/2026
4.0.58 155 10/24/2026
4.0.57 152 10/14/2026
4.0.56 99 10/14/2026
4.0.51 104 10/13/2026
4.0.50 91 10/12/2026
4.0.49 159 10/11/2026
4.0.48 229 9/24/2026
4.0.47 144 9/17/2026
4.0.46 172 9/15/2026
4.0.45 138 9/14/2026
4.0.44 238 9/8/2026
4.0.43 170 9/7/2026
Loading failed

Update Soenneker.SendGrid.OpenApiClient