Soenneker.Lemlist.HttpClients 11.0.85

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

A cached HttpClient configured for Lemlist's API and API-key authentication.

Install

dotnet add package Soenneker.Lemlist.HttpClients

Configuration

{
  "Lemlist": {
    "ApiKey": "your-api-key"
  }
}

Set Lemlist:ClientBaseUrl to override the default Lemlist API URL, such as when using a test server.

Usage

using Soenneker.Lemlist.HttpClients.Abstract;
using Soenneker.Lemlist.HttpClients.Registrars;

services.AddLemlistOpenApiHttpClientAsSingleton();

ILemlistOpenApiHttpClient lemlist =
    serviceProvider.GetRequiredService<ILemlistOpenApiHttpClient>();

HttpClient client = await lemlist.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync("campaigns", cancellationToken);

Get() reuses the cached client and applies Lemlist's Basic authentication format. The API key is the password and the username is empty.

The singleton registration shares one client for the application. The scoped registration keeps both the wrapper and its cache within the scope, so disposing one scope cannot evict another scope's client.

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

Package Downloads
Soenneker.Lemlist.OpenApiClientUtil

Creates and reuses an authenticated Lemlist generated client over the shared HTTP transport

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.85 0 10/26/2026
11.0.84 0 10/26/2026
11.0.83 30 10/26/2026
4.0.82 145 10/15/2026
4.0.81 86 10/15/2026
4.0.79 98 10/14/2026
4.0.78 84 10/14/2026
4.0.77 97 10/14/2026
4.0.76 110 10/14/2026
4.0.70 101 10/13/2026
4.0.69 83 10/13/2026
4.0.66 109 10/12/2026
4.0.65 124 10/11/2026
4.0.64 92 10/11/2026
4.0.63 148 10/9/2026
4.0.62 169 10/1/2026
4.0.61 132 9/29/2026
4.0.60 117 9/29/2026
4.0.59 132 9/26/2026
4.0.58 129 9/25/2026
Loading failed

Enable runtime async for compatible .NET 11 projects