Soenneker.SendGrid.Client.Validation 4.0.2317

Prefix Reserved
dotnet add package Soenneker.SendGrid.Client.Validation --version 4.0.2317
                    
NuGet\Install-Package Soenneker.SendGrid.Client.Validation -Version 4.0.2317
                    
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.Client.Validation" Version="4.0.2317" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.SendGrid.Client.Validation" Version="4.0.2317" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.SendGrid.Client.Validation" />
                    
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.Client.Validation --version 4.0.2317
                    
#r "nuget: Soenneker.SendGrid.Client.Validation, 4.0.2317"
                    
#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.Client.Validation@4.0.2317
                    
#: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.Client.Validation&version=4.0.2317
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.SendGrid.Client.Validation&version=4.0.2317
                    
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.Client.Validation

Provides a cached, authenticated HttpClient for SendGrid Email Address Validation.

Installation

dotnet add package Soenneker.SendGrid.Client.Validation

Configuration

{
  "SendGrid": {
    "ValidationApiKey": "SG.xxxxxxxxx"
  }
}

Usage

using System.Net.Http.Json;
using Soenneker.SendGrid.Client.Validation.Abstract;
using Soenneker.SendGrid.Client.Validation.Registrars;

services.AddSendGridValidationClientUtilAsSingleton();

public sealed class EmailAddressValidator
{
    private readonly ISendGridValidationClientUtil _sendGrid;

    public EmailAddressValidator(ISendGridValidationClientUtil sendGrid)
    {
        _sendGrid = sendGrid;
    }

    public async Task<HttpResponseMessage> Validate(
        string email,
        CancellationToken cancellationToken)
    {
        HttpClient client = await _sendGrid.Get(cancellationToken);
        return await client.PostAsJsonAsync(
            "v3/validations/email",
            new { email },
            cancellationToken);
    }
}

The provider sends SendGrid:ValidationApiKey as a bearer token. The key must have access to Email Address Validation. Set SendGrid:ValidationClientBaseUrl only when routing through a proxy or compatible endpoint. The caller owns each returned HttpResponseMessage and should dispose it after reading the response.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.Client.Validation:

Package Downloads
Soenneker.SendGrid.Validation

Validates email addresses through SendGrid with an explicit fail-open verdict policy.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.2317 61 9/1/2026
4.0.2316 75 8/31/2026
4.0.2315 83 8/31/2026
4.0.2314 65 8/31/2026
4.0.2313 76 8/31/2026
4.0.2312 80 8/31/2026
4.0.2311 72 8/31/2026
4.0.2310 66 8/31/2026
4.0.2309 82 8/31/2026
4.0.2308 75 8/30/2026
4.0.2307 74 8/30/2026
4.0.2306 67 8/30/2026
4.0.2305 114 8/30/2026
4.0.2304 75 8/30/2026
4.0.2303 78 8/30/2026
4.0.2302 73 8/29/2026
4.0.2301 81 8/29/2026
4.0.2300 131 8/26/2026
4.0.2299 87 8/26/2026
4.0.2298 73 8/26/2026
Loading failed

Updated NuGet packages