cURL
curl --request DELETE \ --url https://api.lemlist.com/api/campaigns/{campaignId}/leads/{email} \ --header 'Authorization: Basic <encoded-value>'
{ "email": "[email protected]", "_id": "lea_o3uCcHsibhy9id8qD", "isPaused": false, "campaignId": "cam_eMZnxqs9Z9nqGxzwT", "contactId": "ctc_ARyApP88xS286tgsY" }
Unsubscribes a lead from a lemlist campaign.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The unique identifier of the campaign
The email of the lead
Success
Was this page helpful?