Soenneker.HighLevel.Client
4.0.255
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.HighLevel.Client --version 4.0.255
NuGet\Install-Package Soenneker.HighLevel.Client -Version 4.0.255
<PackageReference Include="Soenneker.HighLevel.Client" Version="4.0.255" />
<PackageVersion Include="Soenneker.HighLevel.Client" Version="4.0.255" />
<PackageReference Include="Soenneker.HighLevel.Client" />
paket add Soenneker.HighLevel.Client --version 4.0.255
#r "nuget: Soenneker.HighLevel.Client, 4.0.255"
#:package Soenneker.HighLevel.Client@4.0.255
#addin nuget:?package=Soenneker.HighLevel.Client&version=4.0.255
#tool nuget:?package=Soenneker.HighLevel.Client&version=4.0.255
Soenneker.HighLevel.Client
Reuse HighLevel HTTP transports with the required API version header and optional per-account bearer authentication.
Installation
dotnet add package Soenneker.HighLevel.Client
Configuration
The client targets https://services.leadconnectorhq.com/ and sends HighLevel API version 2021-07-28 by default. Override only the version when needed:
{
"HighLevel": {
"Version": "2021-07-28"
}
}
API keys are passed to Get; they are not read from configuration.
Registration
services.AddHighLevelHttpClientAsSingleton();
Use AddHighLevelHttpClientAsScoped() only when each scope should own its own client set. Each provider instance uses isolated cache keys, and disposing it removes only the clients that provider created.
Authenticated clients
HttpClient tenantClient = await highLevelHttpClient.Get(
tenantApiKey,
cancellationToken);
HttpResponseMessage response = await tenantClient.GetAsync(
"contacts/",
cancellationToken);
response.EnsureSuccessStatusCode();
Each distinct API key receives a separately cached client with Authorization: Bearer <api-key>. Repeated calls with the same key on the same provider reuse that client.
Unauthenticated transport
HttpClient transport = await highLevelHttpClient.Get(cancellationToken);
The parameterless overload returns a cached client with the base address and Version header but no authorization header. It is intended for higher-level components that add authentication themselves.
The provider owns every returned client. Let the service container dispose the provider; do not dispose individual cached clients.
| 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.Extensions.Configuration (>= 4.0.871)
- Soenneker.Hashing.XxHash (>= 4.0.84)
- Soenneker.Utils.HttpClientCache (>= 4.0.2049)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.HighLevel.Client:
| Package | Downloads |
|---|---|
|
Soenneker.HighLevel.ClientUtil
Provides cached HighLevel generated clients for one or more API keys |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.257 | 40 | 9/1/2026 |
| 4.0.256 | 56 | 8/31/2026 |
| 4.0.255 | 56 | 8/31/2026 |
| 4.0.254 | 48 | 8/31/2026 |
| 4.0.253 | 42 | 8/31/2026 |
| 4.0.252 | 42 | 8/31/2026 |
| 4.0.251 | 67 | 8/31/2026 |
| 4.0.250 | 45 | 8/31/2026 |
| 4.0.249 | 49 | 8/30/2026 |
| 4.0.248 | 78 | 8/30/2026 |
| 4.0.247 | 74 | 8/30/2026 |
| 4.0.246 | 50 | 8/29/2026 |
| 4.0.245 | 56 | 8/29/2026 |
| 4.0.244 | 135 | 8/26/2026 |
| 4.0.243 | 107 | 8/26/2026 |
| 4.0.242 | 116 | 8/26/2026 |
| 4.0.241 | 93 | 8/25/2026 |
| 4.0.240 | 131 | 8/22/2026 |
| 4.0.239 | 121 | 8/21/2026 |
| 4.0.238 | 81 | 8/21/2026 |
Updated NuGet packages