Soenneker.SendGrid.OpenApiClientUtil 11.0.208

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.208
                    
NuGet\Install-Package Soenneker.SendGrid.OpenApiClientUtil -Version 11.0.208
                    
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.208" />
                    
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.208" />
                    
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.208
                    
#r "nuget: Soenneker.SendGrid.OpenApiClientUtil, 11.0.208"
                    
#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.208
                    
#: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.208
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=11.0.208
                    
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.217 96 11/3/2026
11.0.216 86 11/3/2026
11.0.215 95 11/3/2026
11.0.214 76 11/3/2026
11.0.213 92 11/3/2026
11.0.212 136 11/2/2026
11.0.211 102 11/2/2026
11.0.210 108 10/31/2026
11.0.209 107 10/31/2026
11.0.208 113 10/30/2026
11.0.207 109 10/29/2026
11.0.206 122 10/28/2026
11.0.205 111 10/27/2026
11.0.204 111 10/27/2026
11.0.203 97 10/27/2026
11.0.202 97 10/27/2026
11.0.201 96 10/27/2026
11.0.199 94 10/26/2026
11.0.198 96 10/26/2026
4.0.197 100 10/25/2026
Loading failed

Updated Soenneker.SendGrid.OpenApiClient to 11.0.64