Soenneker.HubSpot.OpenApiClient 4.0.138

Prefix Reserved
dotnet add package Soenneker.HubSpot.OpenApiClient --version 4.0.138
                    
NuGet\Install-Package Soenneker.HubSpot.OpenApiClient -Version 4.0.138
                    
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.138" />
                    
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.138" />
                    
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.138
                    
#r "nuget: Soenneker.HubSpot.OpenApiClient, 4.0.138"
                    
#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.138
                    
#: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.138
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.HubSpot.OpenApiClient&version=4.0.138
                    
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.138 36 10/1/2026
4.0.137 71 9/29/2026
4.0.136 174 9/24/2026
4.0.135 197 9/17/2026
4.0.134 148 9/16/2026
4.0.133 153 9/15/2026
4.0.132 104 9/15/2026
4.0.131 158 9/14/2026
4.0.130 204 9/12/2026
4.0.129 128 9/12/2026
4.0.128 143 9/11/2026
4.0.127 128 9/10/2026
4.0.126 202 9/8/2026
4.0.125 250 9/4/2026
4.0.124 179 9/3/2026
4.0.123 121 9/3/2026
4.0.122 120 9/3/2026
4.0.121 175 8/31/2026
4.0.120 242 8/28/2026
4.0.119 186 8/25/2026
Loading failed

Update Soenneker.HubSpot.OpenApiClient