API Reference

Unsubscribe a contact from a given list. Notice that the contact is still available in the list but of unsubscribed status and Acelle will no longer send marketing emails to this contact. You can completely delete the contact from the list using the DELETE API method.

Parameters


api_token string
Your API token. You can find it in your API main page when logged in.


list_uid string
Mail list's uid


uid string
Subsciber's uid

$client = new Acelle\Client(
    'https://app.sastamail.com/api/v1',
    '*|api_token|*'
);
$client->list()->unsubscribe($uid = 'e31046fce3d83', $subscriber_uid = '6292e06666859');
{
    "status": 1,
    "message": "Subscriber was unsubscribed"
}