Soenneker.Slack.HttpClients 4.0.114

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

Provides reusable, bearer-authenticated HttpClient instances for Slack's Web API, including multi-workspace applications.

Installation

dotnet add package Soenneker.Slack.HttpClients

Configuration

{
  "Slack": {
    "ApiKey": "xoxb-your-bot-token"
  }
}

Slack:ClientBaseUrl, Slack:AuthHeaderName, and Slack:AuthHeaderValueTemplate can override the defaults.

Usage

using Soenneker.Slack.HttpClients.Abstract;
using Soenneker.Slack.HttpClients.Registrars;

services.AddSlackOpenApiHttpClientAsSingleton();

HttpClient client = await slackHttpClient.Get(cancellationToken);
using var form = new FormUrlEncodedContent([]);
HttpResponseMessage response = await client.PostAsync(
    "api/auth.test",
    form,
    cancellationToken);

The parameterless Get() uses Slack:ApiKey and Slack:ClientBaseUrl. Pass connection values explicitly to work with multiple Slack tenants:

HttpClient tenantClient = await slackOpenApiHttpClient.Get(tenantApiKey, tenantBaseUrl);

Clients are cached per token and base URL within a provider instance. Disposing the provider removes and disposes every client it created; scoped providers do not share ownership with other scopes.

Product 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. 
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.Slack.HttpClients:

Package Downloads
Soenneker.Slack.OpenApiClientUtil

Provides lazily initialized, authenticated Slack API clients for one or more workspaces.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.114 0 9/17/2026
4.0.113 0 9/16/2026
4.0.112 7 9/16/2026
4.0.110 44 9/16/2026
4.0.109 88 9/15/2026
4.0.108 137 9/13/2026
4.0.107 75 9/13/2026
4.0.106 78 9/13/2026
4.0.105 99 9/13/2026
4.0.104 86 9/13/2026
4.0.103 89 9/13/2026
4.0.102 98 9/12/2026
4.0.101 96 9/12/2026
4.0.100 74 9/12/2026
4.0.99 125 9/9/2026
4.0.98 113 9/9/2026
4.0.97 87 9/9/2026
4.0.96 114 9/8/2026
4.0.95 132 9/8/2026
4.0.94 116 9/8/2026
Loading failed