Soenneker.HighLevel.OpenApiClient 4.0.145

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.HighLevel.OpenApiClient --version 4.0.145
                    
NuGet\Install-Package Soenneker.HighLevel.OpenApiClient -Version 4.0.145
                    
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.OpenApiClient" Version="4.0.145" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.HighLevel.OpenApiClient" Version="4.0.145" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.HighLevel.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.HighLevel.OpenApiClient --version 4.0.145
                    
#r "nuget: Soenneker.HighLevel.OpenApiClient, 4.0.145"
                    
#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.OpenApiClient@4.0.145
                    
#: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.OpenApiClient&version=4.0.145
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.HighLevel.OpenApiClient&version=4.0.145
                    
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.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 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.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.146 87 10/20/2026
4.0.145 261 10/14/2026
4.0.144 187 10/14/2026
4.0.139 109 10/13/2026
4.0.138 77 10/13/2026
4.0.137 165 10/12/2026
4.0.136 205 10/11/2026
4.0.135 89 10/10/2026
4.0.134 580 9/24/2026
4.0.133 107 9/24/2026
4.0.132 299 9/17/2026
4.0.131 304 9/15/2026
4.0.130 287 9/12/2026
4.0.129 258 9/8/2026
4.0.128 328 9/4/2026
4.0.127 151 9/4/2026
4.0.126 223 9/3/2026
4.0.125 133 9/3/2026
4.0.124 157 9/3/2026
4.0.123 123 9/3/2026
Loading failed

Update dependency dotnet-sdk to v10.0.402 (#528)