Soenneker.Slack.HttpClients 4.0.108

Prefix Reserved
dotnet add package Soenneker.Slack.HttpClients --version 4.0.108
                    
NuGet\Install-Package Soenneker.Slack.HttpClients -Version 4.0.108
                    
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.108" />
                    
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.108" />
                    
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.108
                    
#r "nuget: Soenneker.Slack.HttpClients, 4.0.108"
                    
#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.108
                    
#: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.108
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Slack.HttpClients&version=4.0.108
                    
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.108 51 9/13/2026
4.0.107 35 9/13/2026
4.0.106 38 9/13/2026
4.0.105 51 9/13/2026
4.0.104 46 9/13/2026
4.0.103 44 9/13/2026
4.0.102 49 9/12/2026
4.0.101 51 9/12/2026
4.0.100 36 9/12/2026
4.0.99 79 9/9/2026
4.0.98 90 9/9/2026
4.0.97 65 9/9/2026
4.0.96 92 9/8/2026
4.0.95 123 9/8/2026
4.0.94 109 9/8/2026
4.0.93 107 9/7/2026
4.0.92 104 9/7/2026
4.0.91 101 9/7/2026
4.0.90 137 9/5/2026
4.0.89 102 9/5/2026
Loading failed