Add Lead to API Campaign
AI-generatedSummary
Add a LinkedIn lead to a selected API campaign via the SalesTrigger API.
Inputs
- campaignId (required) — Choose a campaign to add the lead into, or specify an ID using an expression.
- lead_linkedin_href (required) — LinkedIn profile URL of the lead (e.g., https://www.linkedin.com/in/
/). - message_1 (required) — Mapped to custom_field_1. Default: Hi!
- message_2 — Mapped to custom_field_2. Default: empty string.
- message_3 — Mapped to custom_field_3. Default: empty string.
- message_4 — Mapped to custom_field_4. Default: empty string.
- message_5 — Mapped to custom_field_5. Default: empty string.
- message_6 — Mapped to custom_field_6. Default: empty string.
- message_7 — Mapped to custom_field_7. Default: empty string.
- message_8 — Mapped to custom_field_8. Default: empty string.
- message_9 — Mapped to custom_field_9. Default: empty string.
- message_10 — Mapped to custom_field_10. Default: empty string.
Output shape
Array of result objects, one per input item.
On success (HTTP 201): { success: true, statusCode: number }. On failure with continueOnFail: { success: false, error: string }. Unhandled errors throw NodeApiError.
Examples
Example 1: Add a single lead to a campaign with a custom greeting.
Set campaignId to a valid campaign value, lead_linkedin_href to a public LinkedIn profile, and message_1 to a personalized message. Messages 2‑10 may be left empty.
Example 2: Batch-add multiple leads from a list.
Iterate over a list of leads using the SplitInBatches or similar node; each item passes through this node to add the lead to the selected campaign.