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
                    
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.Unified.HttpClients" Version="11.0.161" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Unified.HttpClients" Version="11.0.161" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Unified.HttpClients" />
                    
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.Unified.HttpClients --version 11.0.161
                    
#r "nuget: Soenneker.Unified.HttpClients, 11.0.161"
                    
#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.Unified.HttpClients@11.0.161
                    
#: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.Unified.HttpClients&version=11.0.161
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Unified.HttpClients&version=11.0.161
                    
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.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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.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
Loading failed

Enable runtime async for compatible .NET 11 projects