Remove a lead
Removes one lead from a campaign and cancels their waiting emails. The emails the campaign already sent them stay in its statistics, and the person stays in your workspace's leads. An archived campaign returns 409.
Requires the LEAD_CAMPAIGN_ENROLL permission.
apiKeyAuthorizationBearer <token>An API key of your workspace, from Workspace settings, Integrations. Each key has a role, and the role decides which endpoints it may call.
id*integerThe campaign id: the number in the campaign URL in Alienmail, or id from the campaign list. An id that is not a campaign of your workspace returns 404.
email*stringThe lead email address. Encode it for a URL (@ as %40). Upper and lower case are treated the same.
The lead was removed.
application/json- response
removed*booleancurl -X DELETE 'https://app.alienmail.io/api/v1/campaigns/42/leads/ada@example.com'{ "removed": true}Update a lead PATCH
Changes a lead's fields and custom values, and stops or resumes emails to them. Only what you send changes.
Remove leads DELETE
Removes up to 500 leads from a campaign by email. Their waiting emails are cancelled. The emails the campaign already sent them stay in its statistics, and the people stay in your workspace's leads.