Skip to main content
POST
/
api
/
v1
/
campaigns
/
{campaign_id}
/
leads
/
{lead_id}
/
unsubscribe
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/123/leads/789/unsubscribe?api_key=YOUR_KEY"
{
  "success": true,
  "message": "Lead unsubscribed successfully"
}

Documentation Index

Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt

Use this file to discover all available pages before exploring further.

Permanently unsubscribe a lead from receiving emails. Lead will be marked as unsubscribed and excluded from future campaigns.

Path Parameters

campaign_id
number
required
Campaign ID
lead_id
number
required
Lead ID to unsubscribe

Query Parameters

api_key
string
required
Your SmartLead API key
curl -X POST "https://server.smartlead.ai/api/v1/campaigns/123/leads/789/unsubscribe?api_key=YOUR_KEY"

Response Example

{
  "success": true,
  "message": "Lead unsubscribed successfully"
}