Soenneker.HubSpot.OpenApiClient 4.0.122

Prefix Reserved
dotnet add package Soenneker.HubSpot.OpenApiClient --version 4.0.122
                    
NuGet\Install-Package Soenneker.HubSpot.OpenApiClient -Version 4.0.122
                    
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="4.0.122" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.HubSpot.OpenApiClient" Version="4.0.122" />
                    
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 4.0.122
                    
#r "nuget: Soenneker.HubSpot.OpenApiClient, 4.0.122"
                    
#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@4.0.122
                    
#: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=4.0.122
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.HubSpot.OpenApiClient&version=4.0.122
                    
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 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.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
4.0.122 0 9/3/2026
4.0.121 131 8/31/2026
4.0.120 211 8/28/2026
4.0.119 168 8/25/2026
4.0.118 117 8/22/2026
4.0.117 153 8/21/2026
4.0.116 117 8/20/2026
4.0.115 129 8/19/2026
4.0.114 164 8/18/2026
4.0.113 151 8/16/2026
4.0.112 111 8/15/2026
4.0.111 100 8/15/2026
4.0.110 115 8/12/2026
4.0.109 190 8/7/2026
4.0.108 133 8/5/2026
4.0.107 150 8/1/2026
4.0.106 353 7/27/2026
4.0.105 226 7/22/2026
4.0.104 271 7/17/2026
4.0.103 207 7/16/2026
Loading failed

Update dependency Microsoft.Kiota.Http.HttpClientLibrary to 2.1.0 (#202)