Soenneker.HighLevel.OpenApiClient
4.0.122
Prefix Reserved
dotnet add package Soenneker.HighLevel.OpenApiClient --version 4.0.122
NuGet\Install-Package Soenneker.HighLevel.OpenApiClient -Version 4.0.122
<PackageReference Include="Soenneker.HighLevel.OpenApiClient" Version="4.0.122" />
<PackageVersion Include="Soenneker.HighLevel.OpenApiClient" Version="4.0.122" />
<PackageReference Include="Soenneker.HighLevel.OpenApiClient" />
paket add Soenneker.HighLevel.OpenApiClient --version 4.0.122
#r "nuget: Soenneker.HighLevel.OpenApiClient, 4.0.122"
#:package Soenneker.HighLevel.OpenApiClient@4.0.122
#addin nuget:?package=Soenneker.HighLevel.OpenApiClient&version=4.0.122
#tool nuget:?package=Soenneker.HighLevel.OpenApiClient&version=4.0.122
Soenneker.HighLevel.OpenApiClient
Call HighLevel endpoints through a Kiota-generated client with typed request builders and models.
Install
dotnet add package Soenneker.HighLevel.OpenApiClient
Create a client
using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.HighLevel.OpenApiClient;
var httpClient = new HttpClient
{
BaseAddress = new Uri("https://services.leadconnectorhq.com/")
};
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", apiKey);
httpClient.DefaultRequestHeaders.Add("Version", "2021-07-28");
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var client = new HighLevelOpenApiClient(adapter);
The HttpClient supplies authentication and the HighLevel API version, so the Kiota adapter uses anonymous authentication. Reuse the transport rather than constructing one per request, and dispose it when its owning application component shuts down.
For application registration, per-API-key client reuse, and coordinated transport ownership, use Soenneker.HighLevel.ClientUtil instead of constructing the generated client directly.
Call an endpoint
using Soenneker.HighLevel.OpenApiClient.Models;
ContactsByIdSuccessfulResponseDto? response = await client.Contacts[contactId]
.GetAsync(cancellationToken: cancellationToken);
The generated surface follows the OpenAPI document: top-level properties such as Contacts, Calendars, Conversations, Locations, and Opportunities expose request builders, while types under Soenneker.HighLevel.OpenApiClient.Models represent request and response bodies.
HTTP failures are surfaced through Kiota exceptions. Nullable results indicate that an endpoint returned no response body.
This repository contains generated code. Put reusable helpers and behavior changes in a separate package so regeneration does not overwrite them.
| 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
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.0.0)
- Microsoft.Kiota.Serialization.Form (>= 2.0.0)
- Microsoft.Kiota.Serialization.Json (>= 2.0.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.0.0)
- Microsoft.Kiota.Serialization.Text (>= 2.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.HighLevel.OpenApiClient:
| 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.122 | 34 | 8/31/2026 |
| 4.0.121 | 35 | 8/30/2026 |
| 4.0.120 | 662 | 8/15/2026 |
| 4.0.119 | 95 | 8/15/2026 |
| 4.0.118 | 206 | 8/13/2026 |
| 4.0.117 | 414 | 8/1/2026 |
| 4.0.116 | 360 | 7/27/2026 |
| 4.0.115 | 182 | 7/22/2026 |
| 4.0.114 | 279 | 7/16/2026 |
| 4.0.113 | 153 | 7/16/2026 |
| 4.0.112 | 587 | 7/10/2026 |
| 4.0.111 | 160 | 7/9/2026 |
| 4.0.110 | 153 | 7/7/2026 |
| 4.0.109 | 508 | 6/18/2026 |
| 4.0.108 | 666 | 6/5/2026 |
| 4.0.107 | 267 | 5/27/2026 |
| 4.0.106 | 216 | 5/17/2026 |
| 4.0.105 | 146 | 5/15/2026 |
| 4.0.104 | 155 | 5/13/2026 |
| 4.0.103 | 347 | 5/8/2026 |
Improve generated HighLevel client documentation