Soenneker.Instantly.Leads
11.0.3255
Prefix Reserved
dotnet add package Soenneker.Instantly.Leads --version 11.0.3255
NuGet\Install-Package Soenneker.Instantly.Leads -Version 11.0.3255
<PackageReference Include="Soenneker.Instantly.Leads" Version="11.0.3255" />
<PackageVersion Include="Soenneker.Instantly.Leads" Version="11.0.3255" />
<PackageReference Include="Soenneker.Instantly.Leads" />
paket add Soenneker.Instantly.Leads --version 11.0.3255
#r "nuget: Soenneker.Instantly.Leads, 11.0.3255"
#:package Soenneker.Instantly.Leads@11.0.3255
#addin nuget:?package=Soenneker.Instantly.Leads&version=11.0.3255
#tool nuget:?package=Soenneker.Instantly.Leads&version=11.0.3255
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Instantly.ClientUtil (>= 11.0.764)
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.3255 | 0 | 11/15/2026 |
| 11.0.3254 | 54 | 11/14/2026 |
| 11.0.3253 | 79 | 11/13/2026 |
| 11.0.3252 | 98 | 11/11/2026 |
| 11.0.3251 | 85 | 11/11/2026 |
| 11.0.3250 | 94 | 11/11/2026 |
| 11.0.3249 | 76 | 11/11/2026 |
| 11.0.3248 | 112 | 11/11/2026 |
| 11.0.3247 | 104 | 11/11/2026 |
| 11.0.3246 | 90 | 11/11/2026 |
| 11.0.3245 | 123 | 11/10/2026 |
| 11.0.3244 | 132 | 11/8/2026 |
| 11.0.3243 | 168 | 11/7/2026 |
| 11.0.3242 | 128 | 11/6/2026 |
| 11.0.3241 | 151 | 11/4/2026 |
| 11.0.3240 | 173 | 11/3/2026 |
| 11.0.3239 | 111 | 11/3/2026 |
| 11.0.3238 | 86 | 11/3/2026 |
| 11.0.3237 | 102 | 11/3/2026 |
| 11.0.3236 | 110 | 11/3/2026 |
Update dependency Soenneker.Instantly.ClientUtil to 11.0.764 (#3988)