Soenneker.SendGrid.OpenApiClient
11.0.65
Prefix Reserved
dotnet add package Soenneker.SendGrid.OpenApiClient --version 11.0.65
NuGet\Install-Package Soenneker.SendGrid.OpenApiClient -Version 11.0.65
<PackageReference Include="Soenneker.SendGrid.OpenApiClient" Version="11.0.65" />
<PackageVersion Include="Soenneker.SendGrid.OpenApiClient" Version="11.0.65" />
<PackageReference Include="Soenneker.SendGrid.OpenApiClient" />
paket add Soenneker.SendGrid.OpenApiClient --version 11.0.65
#r "nuget: Soenneker.SendGrid.OpenApiClient, 11.0.65"
#:package Soenneker.SendGrid.OpenApiClient@11.0.65
#addin nuget:?package=Soenneker.SendGrid.OpenApiClient&version=11.0.65
#tool nuget:?package=Soenneker.SendGrid.OpenApiClient&version=11.0.65
Soenneker.SendGrid.OpenApiClient
Generated request builders and models for SendGrid mail, contacts, lists, templates, suppressions, statistics, settings, webhooks, API keys, and account resources.
Installation
dotnet add package Soenneker.SendGrid.OpenApiClient
Usage
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.SendGrid.OpenApiClient;
using var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", apiKey);
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient)
{
BaseUrl = "https://api.sendgrid.com"
};
var client = new SendGridOpenApiClient(adapter);
var scopes = await client.Tsg_scopes_v3.V3.Scopes
.WithUrl("https://api.sendgrid.com/v3/scopes")
.GetAsync(cancellationToken: cancellationToken);
SendGrid API keys use the bearer scheme. The anonymous Kiota authentication provider is intentional because the supplied HttpClient already carries the Authorization header.
The source schema groups operations under names such as tsg_scopes_v3, and those group names appear in generated URL templates even though they are not part of SendGrid's public routes. Use the relevant builder's WithUrl method with the documented https://api.sendgrid.com/v3/... endpoint, as shown above.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.2)
- Microsoft.Kiota.Serialization.Form (>= 2.1.2)
- Microsoft.Kiota.Serialization.Json (>= 2.1.2)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.2)
- Microsoft.Kiota.Serialization.Text (>= 2.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.SendGrid.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.SendGrid.OpenApiClientUtil
Provides a lazily initialized, authenticated SendGrid v3 API client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.65 | 0 | 10/30/2026 |
| 11.0.64 | 0 | 10/30/2026 |
| 11.0.63 | 56 | 10/28/2026 |
| 11.0.62 | 77 | 10/27/2026 |
| 11.0.61 | 62 | 10/27/2026 |
| 11.0.60 | 122 | 10/26/2026 |
| 11.0.59 | 97 | 10/26/2026 |
| 4.0.58 | 155 | 10/24/2026 |
| 4.0.57 | 152 | 10/14/2026 |
| 4.0.56 | 99 | 10/14/2026 |
| 4.0.51 | 104 | 10/13/2026 |
| 4.0.50 | 91 | 10/12/2026 |
| 4.0.49 | 159 | 10/11/2026 |
| 4.0.48 | 229 | 9/24/2026 |
| 4.0.47 | 144 | 9/17/2026 |
| 4.0.46 | 172 | 9/15/2026 |
| 4.0.45 | 138 | 9/14/2026 |
| 4.0.44 | 238 | 9/8/2026 |
| 4.0.43 | 170 | 9/7/2026 |
Update Soenneker.SendGrid.OpenApiClient