Soenneker.TrustedForm.Certificates.OpenApiClient 11.0.126

Prefix Reserved
dotnet add package Soenneker.TrustedForm.Certificates.OpenApiClient --version 11.0.126
                    
NuGet\Install-Package Soenneker.TrustedForm.Certificates.OpenApiClient -Version 11.0.126
                    
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="11.0.126" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.TrustedForm.Certificates.OpenApiClient" Version="11.0.126" />
                    
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 11.0.126
                    
#r "nuget: Soenneker.TrustedForm.Certificates.OpenApiClient, 11.0.126"
                    
#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@11.0.126
                    
#: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=11.0.126
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.TrustedForm.Certificates.OpenApiClient&version=11.0.126
                    
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 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.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
11.0.126 117 11/3/2026
11.0.125 128 11/3/2026
11.0.124 105 11/2/2026
11.0.123 117 11/2/2026
11.0.122 112 10/31/2026
11.0.121 91 10/30/2026
11.0.120 106 10/30/2026
11.0.119 124 10/27/2026
11.0.118 104 10/27/2026
11.0.117 126 10/26/2026
11.0.116 96 10/26/2026
11.0.115 105 10/26/2026
4.0.114 189 10/20/2026
4.0.113 154 10/14/2026
4.0.112 104 10/14/2026
4.0.107 111 10/13/2026
4.0.106 98 10/13/2026
4.0.105 97 10/12/2026
4.0.104 150 10/11/2026
4.0.103 102 10/10/2026
Loading failed

Updated Multiple NuGet packages