Soenneker.HubSpot.OpenApiClient 11.0.162

Prefix Reserved
dotnet add package Soenneker.HubSpot.OpenApiClient --version 11.0.162
                    
NuGet\Install-Package Soenneker.HubSpot.OpenApiClient -Version 11.0.162
                    
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.HubSpot.OpenApiClient" Version="11.0.162" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.HubSpot.OpenApiClient" Version="11.0.162" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.HubSpot.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.HubSpot.OpenApiClient --version 11.0.162
                    
#r "nuget: Soenneker.HubSpot.OpenApiClient, 11.0.162"
                    
#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.HubSpot.OpenApiClient@11.0.162
                    
#: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.HubSpot.OpenApiClient&version=11.0.162
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.HubSpot.OpenApiClient&version=11.0.162
                    
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.HubSpot.OpenApiClient

Call HubSpot endpoints through a Kiota-generated client with typed request builders and models.

Install

dotnet add package Soenneker.HubSpot.OpenApiClient

Create a client

using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.HubSpot.OpenApiClient;

var httpClient = new HttpClient
{
    BaseAddress = new Uri("https://api.hubapi.com/")
};
httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", privateAppAccessToken);

var adapter = new HttpClientRequestAdapter(
    new AnonymousAuthenticationProvider(),
    httpClient: httpClient);

var client = new HubSpotOpenApiClient(adapter);

The HttpClient supplies private-app authentication, 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-token client reuse, and coordinated transport ownership, use Soenneker.HubSpot.OpenApiClientUtil instead of constructing the generated client directly.

Call an endpoint

using Soenneker.HubSpot.OpenApiClient.Models;

CollectionResponsePublicOwnerForwardPaging? owners =
    await client.Crm.Owners.TwoZeroTwoSixZeroThree.GetAsync(
        cancellationToken: cancellationToken);

The generated surface mirrors HubSpot's combined OpenAPI description. Names such as TwoZeroTwoSixZeroThree are generated representations of versioned path segments; follow the request-builder properties from areas such as Crm, Marketing, Cms, Files, and Conversations to the desired operation.

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 net11.0 is compatible. 
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.HubSpot.OpenApiClient:

Package Downloads
Soenneker.HubSpot.OpenApiClientUtil

Provides cached HubSpot generated clients for one or more private app access tokens

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.162 0 10/26/2026
11.0.161 33 10/26/2026
4.0.160 96 10/22/2026
4.0.159 62 10/21/2026
4.0.158 114 10/19/2026
4.0.157 136 10/16/2026
4.0.156 122 10/15/2026
4.0.155 105 10/15/2026
4.0.154 91 10/14/2026
4.0.153 129 10/14/2026
4.0.147 104 10/13/2026
4.0.146 92 10/13/2026
4.0.145 91 10/12/2026
4.0.144 166 10/11/2026
4.0.143 106 10/10/2026
4.0.142 131 10/9/2026
4.0.141 163 10/7/2026
4.0.140 128 10/5/2026
4.0.139 159 10/2/2026
4.0.138 116 10/1/2026
Loading failed

Enable runtime async for compatible .NET 11 projects