Soenneker.HighLevel.ClientUtil
4.0.301
Prefix Reserved
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
<PackageReference Include="Soenneker.HighLevel.ClientUtil" Version="4.0.301" />
<PackageVersion Include="Soenneker.HighLevel.ClientUtil" Version="4.0.301" />
<PackageReference Include="Soenneker.HighLevel.ClientUtil" />
paket add Soenneker.HighLevel.ClientUtil --version 4.0.301
#r "nuget: Soenneker.HighLevel.ClientUtil, 4.0.301"
#:package Soenneker.HighLevel.ClientUtil@4.0.301
#addin nuget:?package=Soenneker.HighLevel.ClientUtil&version=4.0.301
#tool nuget:?package=Soenneker.HighLevel.ClientUtil&version=4.0.301
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 | Versions 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. |
-
net10.0
- Soenneker.HighLevel.Client (>= 4.0.256)
- Soenneker.HighLevel.OpenApiClient (>= 4.0.122)
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 |
Updated NuGet packages