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
<PackageReference Include="Soenneker.WorkOs.HttpClients" Version="11.0.202" />
<PackageVersion Include="Soenneker.WorkOs.HttpClients" Version="11.0.202" />
<PackageReference Include="Soenneker.WorkOs.HttpClients" />
paket add Soenneker.WorkOs.HttpClients --version 11.0.202
#r "nuget: Soenneker.WorkOs.HttpClients, 11.0.202"
#:package Soenneker.WorkOs.HttpClients@11.0.202
#addin nuget:?package=Soenneker.WorkOs.HttpClients&version=11.0.202
#tool nuget:?package=Soenneker.WorkOs.HttpClients&version=11.0.202
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 | 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.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 |
Updated Multiple NuGet packages