Soenneker.TrustedForm.Certificates.OpenApiClient 4.0.94

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

A Kiota-generated client for ActiveProspect's TrustedForm Certificate API v4.

Installation

dotnet add package Soenneker.TrustedForm.Certificates.OpenApiClient

Usage

using System.Net.Http.Headers;
using System.Text;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.TrustedForm.Certificates.OpenApiClient;
using Soenneker.TrustedForm.Certificates.OpenApiClient.Item;
using Soenneker.TrustedForm.Certificates.OpenApiClient.Models;

string basicCredentials = Convert.ToBase64String(
    Encoding.UTF8.GetBytes($"API:{trustedFormApiKey}"));

var httpClient = new HttpClient
{
    BaseAddress = new Uri("https://cert.trustedform.com/")
};

httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Basic", basicCredentials);
httpClient.DefaultRequestHeaders.Add("Api-Version", "4.0");

var authentication = new AnonymousAuthenticationProvider();
var adapter = new HttpClientRequestAdapter(authentication, httpClient: httpClient);
var trustedForm = new TrustedFormCertificatesOpenApiClient(adapter);

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

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

The indexer accepts a certificate ID, not an arbitrary URL. If a lead supplies a certificate URL, require HTTPS and the exact host cert.trustedform.com before extracting its path; otherwise an authenticated request can disclose the API credential.

HTTP Basic authentication uses the fixed username API and the TrustedForm API key as its password. Every v4 request must also include Api-Version: 4.0.

retain, match_lead, insights, and verify are separate operations and may be contracted and billed independently. Inspect each operation result—an HTTP success does not by itself mean every requested operation succeeded.

Reuse the client, adapter, and HttpClient. Keep API keys, certificate URLs, matching values, insights, and identity data out of logs.

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.TrustedForm.Certificates.OpenApiClient:

Package Downloads
Soenneker.TrustedForm.Certificates.ClientUtil

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.94 0 9/3/2026
4.0.93 113 8/31/2026
4.0.92 596 7/28/2026
4.0.91 388 7/16/2026
4.0.90 239 7/10/2026
4.0.89 128 7/9/2026
4.0.88 123 7/7/2026
4.0.87 123 7/4/2026
4.0.86 162 6/27/2026
4.0.85 137 6/25/2026
4.0.84 199 6/18/2026
4.0.83 380 6/5/2026
4.0.82 116 6/5/2026
4.0.81 116 6/4/2026
4.0.80 118 6/3/2026
4.0.79 291 5/8/2026
4.0.78 124 5/7/2026
4.0.77 112 5/7/2026
4.0.76 105 5/7/2026
4.0.75 100 5/6/2026
Loading failed

Update dependency Microsoft.Kiota.Http.HttpClientLibrary to 2.1.0 (#391)