Soenneker.WorkOs.HttpClients 11.0.202

Prefix Reserved
dotnet add package Soenneker.WorkOs.HttpClients --version 11.0.202
                    
NuGet\Install-Package Soenneker.WorkOs.HttpClients -Version 11.0.202
                    
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.WorkOs.HttpClients" Version="11.0.202" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.WorkOs.HttpClients" Version="11.0.202" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.WorkOs.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.WorkOs.HttpClients --version 11.0.202
                    
#r "nuget: Soenneker.WorkOs.HttpClients, 11.0.202"
                    
#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.WorkOs.HttpClients@11.0.202
                    
#: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.WorkOs.HttpClients&version=11.0.202
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.WorkOs.HttpClients&version=11.0.202
                    
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.WorkOs.HttpClients

Provides a cached HttpClient configured with the WorkOS API base address and secret API key.

Installation

dotnet add package Soenneker.WorkOs.HttpClients

Configuration

{
  "WorkOs": {
    "ApiKey": "sk_example_123456789"
  }
}

WorkOs:ClientBaseUrl can override the default https://api.workos.com/ endpoint. AuthHeaderName and AuthHeaderValueTemplate are available for compatible gateways; the value template may contain {token}.

Registration and usage

using Soenneker.WorkOs.HttpClients.Abstract;
using Soenneker.WorkOs.HttpClients.Registrars;

services.AddWorkOsOpenApiHttpClientAsSingleton();

public sealed class WorkOsOrganizationService
{
    private readonly IWorkOsOpenApiHttpClient _clientProvider;

    public WorkOsOrganizationService(IWorkOsOpenApiHttpClient clientProvider)
    {
        _clientProvider = clientProvider;
    }

    public async Task<string> ListOrganizations(CancellationToken cancellationToken)
    {
        HttpClient client = await _clientProvider.Get(cancellationToken);
        return await client.GetStringAsync("organizations?limit=10", cancellationToken);
    }
}

Use AddWorkOsOpenApiHttpClientAsScoped() when the provider should follow a scope. Each provider owns its cached client and removes it when disposed.

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.WorkOs.HttpClients:

Package Downloads
Soenneker.WorkOs.OpenApiClientUtil

Provides a cached WorkOS Kiota client backed by a shared configured HTTP transport.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.202 105 12/3/2026
11.0.201 74 12/3/2026
11.0.200 76 12/3/2026
11.0.199 69 12/3/2026
11.0.198 69 12/3/2026
11.0.197 70 12/2/2026
11.0.195 55 12/2/2026
11.0.194 137 12/2/2026
11.0.193 99 12/2/2026
11.0.192 97 12/2/2026
11.0.191 101 12/2/2026
11.0.190 119 12/1/2026
11.0.189 135 12/1/2026
11.0.188 106 12/1/2026
11.0.187 113 12/1/2026
11.0.186 114 12/1/2026
11.0.185 118 11/30/2026
11.0.184 97 11/30/2026
11.0.183 171 11/30/2026
11.0.182 124 11/29/2026
Loading failed

Updated Multiple NuGet packages