Soenneker.TrustedForm.Certificates.ClientUtil 4.0.313

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.TrustedForm.Certificates.ClientUtil --version 4.0.313
                    
NuGet\Install-Package Soenneker.TrustedForm.Certificates.ClientUtil -Version 4.0.313
                    
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.TrustedForm.Certificates.ClientUtil" Version="4.0.313" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.TrustedForm.Certificates.ClientUtil" Version="4.0.313" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.TrustedForm.Certificates.ClientUtil" />
                    
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.TrustedForm.Certificates.ClientUtil --version 4.0.313
                    
#r "nuget: Soenneker.TrustedForm.Certificates.ClientUtil, 4.0.313"
                    
#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.TrustedForm.Certificates.ClientUtil@4.0.313
                    
#: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.TrustedForm.Certificates.ClientUtil&version=4.0.313
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.TrustedForm.Certificates.ClientUtil&version=4.0.313
                    
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.TrustedForm.Certificates.ClientUtil

Provides lazily initialized, authenticated access to the TrustedForm Certificate API v4 client.

Installation

dotnet add package Soenneker.TrustedForm.Certificates.ClientUtil

Configuration

{
  "ActiveProspect": {
    "TrustedForm": {
      "ApiKey": "your-api-key"
    }
  }
}

Supply the raw TrustedForm API key. The utility creates the required HTTP Basic credential with username API and adds Api-Version: 4.0 to requests.

Registration

using Soenneker.TrustedForm.Certificates.ClientUtil.Registrars;

services.AddTrustedFormCertificatesClientUtilAsScoped();

The scoped utility owns its generated-client wrapper. Its underlying TrustedForm HTTP provider remains singleton and is reused after the utility is disposed. Singleton utility registration is also available through AddTrustedFormCertificatesClientUtilAsSingleton().

Retain and match a certificate

using Soenneker.TrustedForm.Certificates.OpenApiClient;
using Soenneker.TrustedForm.Certificates.OpenApiClient.Item;
using Soenneker.TrustedForm.Certificates.OpenApiClient.Models;

Uri certificateUri = new(certificateUrl);

if (!certificateUri.Scheme.Equals(Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) ||
    !certificateUri.Host.Equals("cert.trustedform.com", StringComparison.OrdinalIgnoreCase))
{
    throw new InvalidOperationException("The certificate URL is not a TrustedForm certificate URL.");
}

string certificateId = certificateUri.AbsolutePath.Trim('/');
TrustedFormCertificatesOpenApiClient client =
    await certificateClients.Get(cancellationToken);

var body = new WithCert_PostRequestBody
{
    MatchLead = new MatchLeadParameters
    {
        MatchLeadEmailParameters = new MatchLeadEmailParameters
        {
            Email = leadEmail
        }
    },
    Retain = new RetainParameters
    {
        Reference = leadId,
        Vendor = leadVendor
    }
};

WithCert_PostResponse? result =
    await client[certificateId].PostAsync(body, cancellationToken: cancellationToken);

Validate the certificate host before extracting the ID. Sending an authenticated request to a caller-supplied host can disclose the TrustedForm API credential.

Certificate v4 operations are contracted and billed separately. Request only the retain, match_lead, insights, or verify operations your workflow intends to purchase, and inspect each operation's result rather than treating an HTTP success alone as business success.

Do not log API keys, certificate URLs, lead matching values, insights, or response bodies containing identity data.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.320 38 9/1/2026
4.0.319 32 9/1/2026
4.0.314 77 8/31/2026
4.0.313 69 8/31/2026
4.0.312 70 8/31/2026
4.0.311 69 8/31/2026
4.0.310 72 8/30/2026
4.0.309 72 8/30/2026
4.0.308 72 8/30/2026
4.0.307 81 8/26/2026
4.0.306 79 8/26/2026
4.0.305 86 8/22/2026
4.0.304 93 8/22/2026
4.0.303 163 8/19/2026
4.0.302 81 8/18/2026
4.0.301 92 8/13/2026
4.0.300 102 8/13/2026
4.0.299 92 8/12/2026
4.0.298 87 8/9/2026
4.0.297 86 8/9/2026
Loading failed

Update dependency Soenneker.Utils.AsyncSingleton to 4.0.829 (#599)