SmartLead icon

SmartLead

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

Actions144

Lead → Unsubscribe From Campaign

AI-generated

Summary

Unsubscribe a lead from a campaign

Inputs

  • campaignId (required) — ID of the campaign from which to unsubscribe the lead
  • leadId (required) — ID of the lead to unsubscribe
  • requestBody — JSON payload sent in the request; typically empty but can include additional parameters
  • requestOptions — Options for the HTTP request, such as batching, timeout, proxy, and SSL verification

Output shape

A success response confirming the unsubscribe operation; usually contains a status or confirmation message

If the API returns an error, it follows the standard SmartLead error envelope; otherwise the response body is typically empty or includes a simple success flag

Examples

Example 1: Unsubscribe a lead from a specific campaign

Set operation to Unsubscribe From Campaign, provide campaignId and leadId, optionally set requestBody and requestOptions

Example 2: Unsubscribe using batch option

Enable batching in requestOptions and supply campaignId and leadId

Example 3: Unsubscribe with custom request settings

Configure requestOptions with a proxy and timeout while providing required IDs

Links

Discussion