SmartLead icon

SmartLead

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

Actions144

Lead → Push to Campaign

AI-generated

Summary

Push leads from lists to a SmartLead campaign

Inputs

  • requestBody — Request payload as JSON object
  • requestOptions — Configuration options for the request, such as batching settings
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers (and start the response body) before aborting the request

Output shape

a JSON object representing the updated campaign or push result

On success returns the updated campaign object; on failure returns an error object. The response may include additional metadata.

Examples

Example 1: Add leads to an existing campaign

Set operation to pushLeadsToCampaign, provide requestBody with an array of lead objects, specify the target campaignId, and optionally enable batching via requestOptions.

Example 2: Batch push with a custom batch size

Enable batching in requestOptions (batchSize 200, batchInterval 500), send requestBody containing leads, include campaignId.

Example 3: Ignore SSL errors for a self‑signed cert

Set allowUnauthorizedCerts to true, provide requestBody and campaignId, then execute the push operation.

Links

Discussion