Remove leads
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.
Emails that are not leads of the campaign are counted in notInCampaign, so the call is safe to repeat. 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.
application/json- body
emails*array<string>1 to 500 email addresses to remove from the campaign.
1 <= items <= 500What happened to the emails in the request.
application/json- response
received*integerEmails in the request.
removed*integerLeads removed from the campaign.
notInCampaign*integerEmails that were not leads of the campaign.
invalid*array<>Entries that are not email addresses.
curl -X DELETE 'https://app.alienmail.io/api/v1/campaigns/42/leads' \ -H 'Content-Type: application/json' \ -d '{ "emails": [ "ada@example.com", "grace@example.com" ]}'{ "received": 2, "removed": 1, "notInCampaign": 1, "invalid": []}Remove a lead DELETE
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.
List mailboxes GET
The mailboxes connected to your workspace, newest first. Passwords, tokens and server settings are never returned.