Soenneker.HighLevel.ClientUtil 4.0.301

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

Create and reuse authenticated HighLevel generated clients for one or more accounts.

Install

dotnet add package Soenneker.HighLevel.ClientUtil

Configuration

The parameterless Get() reads the default account key from configuration:

{
  "HighLevel": {
    "ApiKey": "<API key>",
    "Version": "2021-07-28"
  }
}

Version is optional and defaults to 2021-07-28.

Register

using Soenneker.HighLevel.ClientUtil.Registrars;

services.AddHighLevelClientUtilAsScoped();

The scoped utility deliberately uses a singleton IHighLevelHttpClient. Disposing a scope releases that utility's generated-client cache while keeping the underlying HTTP clients available to later scopes. Use AddHighLevelClientUtilAsSingleton() when the generated-client cache should also live for the application lifetime.

Usage

using Soenneker.HighLevel.ClientUtil.Abstract;
using Soenneker.HighLevel.OpenApiClient;
using Soenneker.HighLevel.OpenApiClient.Models;

public sealed class ContactService(IHighLevelClientUtil clientUtil)
{
    public async Task<ContactsByIdSuccessfulResponseDto?> Get(
        string contactId,
        CancellationToken cancellationToken)
    {
        HighLevelOpenApiClient client = await clientUtil.Get(cancellationToken);

        return await client.Contacts[contactId]
            .GetAsync(cancellationToken: cancellationToken);
    }
}

For multiple HighLevel accounts, supply the key for each call:

HighLevelOpenApiClient tenantClient = await clientUtil.Get(
    tenantApiKey,
    cancellationToken);

Calls using the same key on the same utility instance reuse the generated client. Different keys receive separate generated clients and separate authenticated HTTP clients.

Authentication is applied by the underlying HTTP provider; the Kiota adapter does not add a second bearer header. Let the service container dispose the utility and provider rather than disposing cached clients directly.

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.HighLevel.ClientUtil:

Package Downloads
Soenneker.HighLevel.Contacts

Provides typed HighLevel contact upsert, search, lookup, update, and delete operations

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.302 0 9/1/2026
4.0.301 0 9/1/2026
4.0.300 25 8/31/2026
4.0.299 32 8/31/2026
4.0.298 33 8/31/2026
4.0.297 43 8/31/2026
4.0.296 46 8/30/2026
4.0.295 51 8/30/2026
4.0.294 45 8/30/2026
4.0.293 84 8/26/2026
4.0.292 77 8/26/2026
4.0.291 68 8/26/2026
4.0.290 103 8/22/2026
4.0.289 109 8/21/2026
4.0.288 273 8/19/2026
4.0.287 101 8/18/2026
4.0.286 97 8/15/2026
4.0.285 152 8/14/2026
4.0.284 104 8/13/2026
4.0.283 91 8/13/2026
Loading failed

Updated NuGet packages