Unsubscribe API - How to Unsubscribe members from receiving email campaigns with API Calls
It is possible to Unsubscribe a member from receiving email using the api, only 1 member can be updated at a time.
Using the API there are 3 Unsubscribe actions that can be achieved:
- /api/v2/unsubscribe_list/get/{id}
- /api/v2/unsubscribe_list/create
- /api/v2/unsubscribe_list/delete
We will break down these actions and explain how to achieve an end results with each one. The examples shown in this article are completed using https://www.postman.com/
- /api/v2/unsubscribe_list/get/{id}
Using this action is simple, add the url above but replace {id} with the actual member ID. This will fetch the member information from the website
- /api/v2/unsubscribe_list/create
With this action, by sending the email, it will add the member to the unsubscribe list.
- /api/v2/unsubscribe_list/update
With this action it is possible to update the unsubscribed list.
- /api/v2/unsubscribe_list/delete
Use this action URL to delete a a member from the unsubscribed list, replace {id} with the member ID that will be removed from the unsubscribed list.