Soenneker.Instantly.Leads 11.0.3271

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

Add leads to campaigns, find or search them by email, and delete matching leads.

Install

dotnet add package Soenneker.Instantly.Leads

Configure and register

{
  "Instantly": {
    "ApiKey": "<API key>",
    "LogEnabled": false
  }
}
using Soenneker.Instantly.Leads.Registrars;

services.AddInstantlyLeadUtilAsScoped();

The scoped lead service deliberately uses the singleton generated-client provider. Use AddInstantlyLeadUtilAsSingleton() when the operation layer should also live for the application lifetime.

Add a lead

using Soenneker.Instantly.Leads.Abstract;
using Soenneker.Instantly.OpenApiClient.Models;

var request = new CreateLeadRequest
{
    Email = "person@example.com",
    FirstName = "Morgan",
    LastName = "Lee"
};

Lead? created = await leads.Add(
    request,
    campaignId,
    cancellationToken);

This overload sets request.Campaign and lowercases request.Email before sending it, so it mutates the supplied request. Use Add(request, cancellationToken) when Campaign is already populated; that overload also lowercases the email.

Find leads

Lead? first = await leads.GetByEmail(
    "person@example.com",
    campaignId,
    cancellationToken);

List<Lead>? matches = await leads.Search(
    "person@example.com",
    campaignId,
    cancellationToken);

Omit campaignId to search across campaigns. GetByEmail requests one result and returns the first match; Search returns the matching list from Instantly.

Delete leads

Lead? firstDeleted = await leads.Delete(
    ["person@example.com"],
    campaignId,
    cancellationToken);

Delete first resolves matching leads, then deletes every returned lead that has an ID. Omitting campaignId expands that destructive operation across all campaigns. The return value is the first matched lead, not a count of successful deletions; an exception can leave a partially completed batch if a later deletion fails.

API failures are surfaced to the caller. Nullable results indicate that Instantly returned no response body or no matching lead.

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.Instantly.Leads:

Package Downloads
Soenneker.Instantly.Suite

Registers Instantly account, analytics, DFY, lead, Unibox, and email-verification operations together

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.3271 0 11/26/2026
11.0.3270 59 11/25/2026
11.0.3269 88 11/24/2026
11.0.3268 118 11/22/2026
11.0.3267 95 11/21/2026
11.0.3266 119 11/20/2026
11.0.3265 119 11/19/2026
11.0.3264 119 11/19/2026
11.0.3263 107 11/19/2026
11.0.3262 108 11/18/2026
11.0.3261 118 11/18/2026
11.0.3260 118 11/18/2026
11.0.3259 108 11/17/2026
11.0.3258 92 11/17/2026
11.0.3257 139 11/15/2026
11.0.3256 118 11/15/2026
11.0.3255 141 11/15/2026
11.0.3254 138 11/14/2026
11.0.3253 158 11/13/2026
11.0.3252 135 11/11/2026
Loading failed

Update dependency Soenneker.Instantly.ClientUtil to 11.0.780 (#3998)