Soenneker.HubSpot.OpenApiClient 4.0.153

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.HubSpot.OpenApiClient --version 4.0.153
                    
NuGet\Install-Package Soenneker.HubSpot.OpenApiClient -Version 4.0.153
                    
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.153" />
                    
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.153" />
                    
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.153
                    
#r "nuget: Soenneker.HubSpot.OpenApiClient, 4.0.153"
                    
#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.153
                    
#: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.153
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.HubSpot.OpenApiClient&version=4.0.153
                    
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
11.0.171 0 11/3/2026
11.0.170 0 11/3/2026
11.0.169 50 11/3/2026
11.0.168 61 11/2/2026
11.0.167 62 11/2/2026
11.0.166 70 11/2/2026
11.0.165 80 10/31/2026
11.0.164 71 10/31/2026
11.0.163 124 10/27/2026
11.0.162 149 10/26/2026
11.0.161 99 10/26/2026
4.0.160 178 10/22/2026
4.0.159 112 10/21/2026
4.0.158 121 10/19/2026
4.0.157 144 10/16/2026
4.0.156 131 10/15/2026
4.0.155 110 10/15/2026
4.0.154 98 10/14/2026
4.0.153 132 10/14/2026
4.0.147 112 10/13/2026
Loading failed

Use NuGet API token for publishing