Soenneker.SendGrid.OpenApiClientUtil 11.0.207

Prefix Reserved
dotnet add package Soenneker.SendGrid.OpenApiClientUtil --version 11.0.207
                    
NuGet\Install-Package Soenneker.SendGrid.OpenApiClientUtil -Version 11.0.207
                    
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.207" />
                    
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.207" />
                    
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.207
                    
#r "nuget: Soenneker.SendGrid.OpenApiClientUtil, 11.0.207"
                    
#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.207
                    
#: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.207
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.OpenApiClientUtil&version=11.0.207
                    
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.207 65 10/29/2026
11.0.206 94 10/28/2026
11.0.205 93 10/27/2026
11.0.204 92 10/27/2026
11.0.203 80 10/27/2026
11.0.202 79 10/27/2026
11.0.201 80 10/27/2026
11.0.199 86 10/26/2026
11.0.198 90 10/26/2026
4.0.197 93 10/25/2026
4.0.196 100 10/15/2026
4.0.195 83 10/14/2026
4.0.194 88 10/14/2026
4.0.191 85 10/14/2026
4.0.190 85 10/14/2026
4.0.184 83 10/13/2026
4.0.183 87 10/12/2026
4.0.181 86 10/12/2026
4.0.180 89 10/11/2026
4.0.179 92 10/11/2026
Loading failed

Update dependency Soenneker.SendGrid.OpenApiClient to 11.0.63 (#346)