Soenneker.SendGrid.OpenApiClientUtil 11.0.202

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.202
                    
NuGet\Install-Package Soenneker.SendGrid.OpenApiClientUtil -Version 11.0.202
                    
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.202" />
                    
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.202" />
                    
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.202
                    
#r "nuget: Soenneker.SendGrid.OpenApiClientUtil, 11.0.202"
                    
#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.202
                    
#: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.202
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=11.0.202
                    
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 103 11/3/2026
11.0.216 87 11/3/2026
11.0.215 98 11/3/2026
11.0.214 76 11/3/2026
11.0.213 93 11/3/2026
11.0.212 139 11/2/2026
11.0.211 103 11/2/2026
11.0.210 111 10/31/2026
11.0.209 108 10/31/2026
11.0.208 114 10/30/2026
11.0.207 110 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 98 10/27/2026
11.0.202 99 10/27/2026
11.0.201 97 10/27/2026
11.0.199 95 10/26/2026
11.0.198 97 10/26/2026
4.0.197 100 10/25/2026
Loading failed

Update dependency Soenneker.SendGrid.OpenApiClient to v11 (#341)