Soenneker.Unified.HttpClients
11.0.161
Prefix Reserved
dotnet add package Soenneker.Unified.HttpClients --version 11.0.161
NuGet\Install-Package Soenneker.Unified.HttpClients -Version 11.0.161
<PackageReference Include="Soenneker.Unified.HttpClients" Version="11.0.161" />
<PackageVersion Include="Soenneker.Unified.HttpClients" Version="11.0.161" />
<PackageReference Include="Soenneker.Unified.HttpClients" />
paket add Soenneker.Unified.HttpClients --version 11.0.161
#r "nuget: Soenneker.Unified.HttpClients, 11.0.161"
#:package Soenneker.Unified.HttpClients@11.0.161
#addin nuget:?package=Soenneker.Unified.HttpClients&version=11.0.161
#tool nuget:?package=Soenneker.Unified.HttpClients&version=11.0.161
Soenneker.Unified.HttpClients
Provides a cached HttpClient configured for the Unified API with workspace-token authentication.
Installation
dotnet add package Soenneker.Unified.HttpClients
Configuration
{
"Unified": {
"ApiKey": "your-workspace-api-token"
}
}
The default API URL is https://api.unified.to/. Set Unified:ClientBaseUrl to https://api-eu.unified.to/ or https://api-au.unified.to/ when the workspace belongs to another data region.
Registration
using Soenneker.Unified.HttpClients.Registrars;
services.AddUnifiedOpenApiHttpClientAsSingleton();
Scoped registration is available through AddUnifiedOpenApiHttpClientAsScoped(). Each provider instance owns its cached client and removes only that client when disposed.
Usage
using Soenneker.Unified.HttpClients.Abstract;
public sealed class UnifiedApiCaller
{
private readonly IUnifiedOpenApiHttpClient _clients;
public UnifiedApiCaller(IUnifiedOpenApiHttpClient clients)
{
_clients = clients;
}
public async ValueTask<HttpResponseMessage> GetIntegrations(
string workspaceId,
CancellationToken cancellationToken)
{
HttpClient client = await _clients.Get(cancellationToken);
string id = Uri.EscapeDataString(workspaceId);
return await client.GetAsync(
$"unified/integration/workspace?workspace_id={id}",
cancellationToken);
}
}
Requests include Authorization: Bearer <ApiKey> by default. The workspace token can access all connections in the workspace, so keep it in server-side secret storage and never send it to a browser or client application.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.914)
- Soenneker.Utils.HttpClientCache (>= 4.0.2128)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Unified.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Unified.OpenApiClientUtil
Provides a cached Unified OpenAPI client backed by authenticated transport |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.161 | 0 | 10/26/2026 |
| 11.0.160 | 0 | 10/26/2026 |
| 11.0.159 | 34 | 10/26/2026 |
| 4.0.158 | 250 | 10/15/2026 |
| 4.0.157 | 82 | 10/14/2026 |
| 4.0.156 | 101 | 10/14/2026 |
| 4.0.154 | 93 | 10/14/2026 |
| 4.0.153 | 113 | 10/14/2026 |
| 4.0.146 | 108 | 10/13/2026 |
| 4.0.141 | 152 | 10/11/2026 |
| 4.0.140 | 91 | 10/11/2026 |
| 4.0.139 | 91 | 10/11/2026 |
| 4.0.138 | 142 | 10/9/2026 |
| 4.0.137 | 221 | 10/1/2026 |
| 4.0.136 | 131 | 9/29/2026 |
| 4.0.135 | 102 | 9/29/2026 |
| 4.0.134 | 143 | 9/26/2026 |
| 4.0.133 | 107 | 9/26/2026 |
| 4.0.132 | 100 | 9/25/2026 |
| 4.0.131 | 103 | 9/25/2026 |
Enable runtime async for compatible .NET 11 projects