API Reference

Add one or more tags to a given subscriber. Tagging allows you to add custom labels to your subscribers, giving you the ability to reach people based on specific traits.

Parameters


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


uid string
Subscriber's uid


tag string
Subscriber's tags, seperated by a comma (,).

$client = new Acelle\Client(
    'https://app.sastamail.com/api/v1',
    '*|api_token|*'
);
$client->subscriber()->addTag('5fade5c93e42a', [
    'tag' => 'foo,bar,tag+with+space,',
]);
{
    "status": 1,
    "message": "Tag was added successfully",
    "subscriber_uid": "5fd07ca421da0",
    "tags": ["foo","bar","tag with space"]
}