Soenneker.SendGrid.OpenApiClientUtil 11.0.224

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

Provides a lazily initialized SendGrid client for mail, contacts, lists, templates, suppressions, statistics, settings, webhooks, API keys, and account resources.

Installation

dotnet add package Soenneker.SendGrid.OpenApiClientUtil

Configuration

{
  "SendGrid": {
    "ApiKey": "SG.xxxxxxxxx"
  }
}

Usage

using Soenneker.SendGrid.OpenApiClientUtil.Abstract;
using Soenneker.SendGrid.OpenApiClientUtil.Registrars;

services.AddSendGridOpenApiClientUtilAsSingleton();

public sealed class SendGridScopeReader
{
    private readonly ISendGridOpenApiClientUtil _sendGrid;

    public SendGridScopeReader(ISendGridOpenApiClientUtil sendGrid)
    {
        _sendGrid = sendGrid;
    }

    public async Task GetScopes(CancellationToken cancellationToken)
    {
        var client = await _sendGrid.Get(cancellationToken);
        var scopes = await client.Tsg_scopes_v3.V3.Scopes
            .WithUrl("https://api.sendgrid.com/v3/scopes")
            .GetAsync(cancellationToken: cancellationToken);
    }
}

The source schema's tsg_* group names appear in generated URL templates even though they are not public SendGrid route segments. Use WithUrl with the documented https://api.sendgrid.com/v3/... endpoint for these builders.

Use AddSendGridOpenApiClientUtilAsScoped() when each scope should have its own lazily initialized generated client. Both registrations reuse the singleton authenticated HTTP client provider.

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.OpenApiClientUtil:

Package Downloads
Soenneker.SendGrid.Contacts

Adds, retrieves, searches, and deletes SendGrid Marketing contacts.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.225 47 11/15/2026
11.0.224 58 11/15/2026
11.0.223 56 11/15/2026
11.0.222 110 11/11/2026
11.0.221 94 11/11/2026
11.0.220 89 11/11/2026
11.0.218 116 11/11/2026
11.0.217 130 11/3/2026
11.0.216 102 11/3/2026
11.0.215 114 11/3/2026
11.0.214 89 11/3/2026
11.0.213 108 11/3/2026
11.0.212 149 11/2/2026
11.0.211 109 11/2/2026
11.0.210 118 10/31/2026
11.0.209 114 10/31/2026
11.0.208 119 10/30/2026
11.0.207 112 10/29/2026
11.0.206 127 10/28/2026
11.0.205 117 10/27/2026
Loading failed

Updated Soenneker.SendGrid.HttpClients to 11.0.172