Soenneker.Intercom.HttpClients
11.0.207
Prefix Reserved
dotnet add package Soenneker.Intercom.HttpClients --version 11.0.207
NuGet\Install-Package Soenneker.Intercom.HttpClients -Version 11.0.207
<PackageReference Include="Soenneker.Intercom.HttpClients" Version="11.0.207" />
<PackageVersion Include="Soenneker.Intercom.HttpClients" Version="11.0.207" />
<PackageReference Include="Soenneker.Intercom.HttpClients" />
paket add Soenneker.Intercom.HttpClients --version 11.0.207
#r "nuget: Soenneker.Intercom.HttpClients, 11.0.207"
#:package Soenneker.Intercom.HttpClients@11.0.207
#addin nuget:?package=Soenneker.Intercom.HttpClients&version=11.0.207
#tool nuget:?package=Soenneker.Intercom.HttpClients&version=11.0.207
Soenneker.Intercom.HttpClients
Reuse an authenticated HTTP client for Intercom's API, with configurable base URL and authentication header formatting.
Install
dotnet add package Soenneker.Intercom.HttpClients
Configure
{
"Intercom": {
"ApiKey": "<access token>"
}
}
ApiKey is required. The defaults target https://api.intercom.io and send Authorization: Bearer <access token>.
Optional overrides:
{
"Intercom": {
"ClientBaseUrl": "https://api.intercom.io",
"AuthHeaderName": "Authorization",
"AuthHeaderValueTemplate": "Bearer {token}"
}
}
AuthHeaderValueTemplate must contain {token} where the API key should be inserted.
Register
using Soenneker.Intercom.HttpClients.Registrars;
services.AddIntercomOpenApiHttpClientAsSingleton();
Use AddIntercomOpenApiHttpClientAsScoped() only when each scope should own its transport. Provider instances use isolated cache keys, so disposing one scope removes only its own client.
Usage
using Soenneker.Intercom.HttpClients.Abstract;
HttpClient client = await intercomHttpClient.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync(
"contacts",
cancellationToken);
response.EnsureSuccessStatusCode();
Repeated Get() calls on the same provider reuse its client. The provider owns that client; let the service container dispose the provider rather than disposing the returned instance directly.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.921)
- Soenneker.Utils.HttpClientCache (>= 11.0.2188)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Intercom.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Intercom.OpenApiClientUtil
Provides a lazily created Intercom generated client over the shared authenticated transport |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.207 | 64 | 12/3/2026 |
| 11.0.206 | 84 | 12/3/2026 |
| 11.0.205 | 85 | 12/3/2026 |
| 11.0.204 | 81 | 12/3/2026 |
| 11.0.203 | 83 | 12/2/2026 |
| 11.0.201 | 73 | 12/2/2026 |
| 11.0.200 | 101 | 12/2/2026 |
| 11.0.199 | 93 | 12/2/2026 |
| 11.0.198 | 94 | 12/2/2026 |
| 11.0.197 | 95 | 12/1/2026 |
| 11.0.196 | 87 | 12/1/2026 |
| 11.0.195 | 94 | 12/1/2026 |
| 11.0.194 | 98 | 12/1/2026 |
| 11.0.193 | 106 | 11/30/2026 |
| 11.0.192 | 93 | 11/30/2026 |
| 11.0.191 | 127 | 11/30/2026 |
| 11.0.190 | 91 | 11/30/2026 |
| 11.0.189 | 105 | 11/29/2026 |
| 11.0.188 | 199 | 11/19/2026 |
| 11.0.187 | 101 | 11/19/2026 |
Updated Multiple NuGet packages