Soenneker.SendGrid.OpenApiClientUtil 11.0.211

Prefix Reserved
dotnet add package Soenneker.SendGrid.OpenApiClientUtil --version 11.0.211
                    
NuGet\Install-Package Soenneker.SendGrid.OpenApiClientUtil -Version 11.0.211
                    
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.211" />
                    
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.211" />
                    
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.211
                    
#r "nuget: Soenneker.SendGrid.OpenApiClientUtil, 11.0.211"
                    
#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.211
                    
#: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.211
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=11.0.211
                    
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.211 0 11/2/2026
11.0.210 53 10/31/2026
11.0.209 56 10/31/2026
11.0.208 62 10/30/2026
11.0.207 81 10/29/2026
11.0.206 105 10/28/2026
11.0.205 99 10/27/2026
11.0.204 98 10/27/2026
11.0.203 85 10/27/2026
11.0.202 84 10/27/2026
11.0.201 84 10/27/2026
11.0.199 90 10/26/2026
11.0.198 92 10/26/2026
4.0.197 95 10/25/2026
4.0.196 101 10/15/2026
4.0.195 85 10/14/2026
4.0.194 90 10/14/2026
4.0.191 87 10/14/2026
4.0.190 86 10/14/2026
4.0.184 84 10/13/2026
Loading failed

Update dependency Soenneker.SendGrid.OpenApiClient to 11.0.68 (#349)