Unsubscribe Contacts From Emails
POST https://driftapi.com/emails/unsubscribe
When unsubscribing contacts, just provide a list of emails that you wish to unsubscribe. Simply POST to the /email/unsubscribe
end point.
Example Unsubscribe
The following example shows how to unsubscribe some contacts. The code leverages HTTPie for request generation.
-- This example shows how the list of emails is formatted.
["[email protected]", "[email protected]", "[email protected]"]
-- Example execution
POST https://driftapiqa.com/emails/unsubscribe < [email protected]
Validate the contact was unsubscribed by checking the UI:
![Screen Shot 2021-04-23 at 2.04.00 PM.png 740](https://files.readme.io/fdc0d45-Screen_Shot_2021-04-23_at_2.04.00_PM.png)
Updated over 3 years ago