SmartLead icon

SmartLead

Interact with SmartLead API (campaigns, leads, inbox, analytics, delivery, and webhooks)

Actions144

Lead → Add to Campaign

AI-generated

Summary

Add leads to a campaign

Inputs

  • campaignId (required) — Identifier of the target campaign.
  • requestBody — JSON payload containing the leads to add; defaults to an empty object.
  • requestOptions — Additional request configuration such as batching, proxy, timeout, and SSL verification.

Output shape

object

The response body from the SmartLead API, typically confirming the addition and returning any relevant details; errors are propagated as n8n errors.

Examples

Example 1: Add a single lead to a campaign with minimal configuration

'campaignId': '12345', 'requestBody': { 'leads': [{ 'email': 'test@example.com' }] }'

Example 2: Add multiple leads in batches of 50 using request options

'campaignId': '12345', 'requestBody': { 'leads': [{ 'email': 'a@example.com' }, { 'email': 'b@example.com' }] }, 'requestOptions': { 'batching': { 'batchSize': 50 } }'

Example 3: Add leads through a corporate HTTP proxy with custom timeout

'campaignId': '12345', 'requestBody': { 'leads': [{ 'email': 'user@example.com' }] }, 'requestOptions': { 'proxy': 'http://proxy.example.com:3128', 'timeout': 15000 }'

Links

Discussion