Soenneker.N8n.HttpClients
4.0.129
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.N8n.HttpClients --version 4.0.129
NuGet\Install-Package Soenneker.N8n.HttpClients -Version 4.0.129
<PackageReference Include="Soenneker.N8n.HttpClients" Version="4.0.129" />
<PackageVersion Include="Soenneker.N8n.HttpClients" Version="4.0.129" />
<PackageReference Include="Soenneker.N8n.HttpClients" />
paket add Soenneker.N8n.HttpClients --version 4.0.129
#r "nuget: Soenneker.N8n.HttpClients, 4.0.129"
#:package Soenneker.N8n.HttpClients@4.0.129
#addin nuget:?package=Soenneker.N8n.HttpClients&version=4.0.129
#tool nuget:?package=Soenneker.N8n.HttpClients&version=4.0.129
Soenneker.N8n.HttpClients
Provides cached, API-key-authenticated HttpClient instances for one or more n8n servers.
Installation
dotnet add package Soenneker.N8n.HttpClients
Configuration
{
"N8n": {
"ApiKey": "your-api-key",
"ClientBaseUrl": "https://n8n.example.com/api/v1"
}
}
Usage
using Soenneker.N8n.HttpClients.Abstract;
using Soenneker.N8n.HttpClients.Registrars;
services.AddN8nOpenApiHttpClientAsSingleton();
IN8nOpenApiHttpClient n8n = serviceProvider
.GetRequiredService<IN8nOpenApiHttpClient>();
HttpClient client = await n8n.Get(cancellationToken);
Use Get(apiKey, baseUrl) to connect to another n8n server. Equivalent connection settings reuse the same client within the provider's lifetime.
The default authentication header is X-N8N-API-KEY: {token}. N8n:AuthHeaderName and N8n:AuthHeaderValueTemplate can override it for a compatible gateway.
Do not dispose a returned HttpClient; the registered provider owns it and removes it from the cache when disposed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.Configuration (>= 4.0.882)
- Soenneker.Hashing.XxHash (>= 4.0.91)
- Soenneker.Utils.HttpClientCache (>= 4.0.2068)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.N8n.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.N8n.OpenApiClientUtil
Creates and caches authenticated n8n API clients for one or more servers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.152 | 74 | 9/17/2026 |
| 4.0.151 | 73 | 9/17/2026 |
| 4.0.150 | 80 | 9/16/2026 |
| 4.0.149 | 88 | 9/16/2026 |
| 4.0.148 | 77 | 9/16/2026 |
| 4.0.147 | 82 | 9/16/2026 |
| 4.0.146 | 76 | 9/16/2026 |
| 4.0.145 | 92 | 9/16/2026 |
| 4.0.144 | 98 | 9/15/2026 |
| 4.0.143 | 105 | 9/15/2026 |
| 4.0.142 | 105 | 9/14/2026 |
| 4.0.141 | 97 | 9/14/2026 |
| 4.0.140 | 110 | 9/13/2026 |
| 4.0.139 | 81 | 9/13/2026 |
| 4.0.138 | 96 | 9/13/2026 |
| 4.0.137 | 97 | 9/13/2026 |
| 4.0.136 | 79 | 9/13/2026 |
| 4.0.133 | 99 | 9/12/2026 |
| 4.0.132 | 128 | 9/9/2026 |
| 4.0.129 | 88 | 9/9/2026 |