API Reference

Add a subscriber to a list identified by a UID. Once added, the subscriber's status would be either subscribed / active or pending depending on your list settings (single opt-in or double opt-in)

Parameters


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


list_uid string
List's uid


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


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


[OTHER_FIELDS...] string
All subscriber's other fields: FIRST_NAME (?), LAST_NAME (?),... (depending on the list fields configuration)

$client = new Acelle\Client(
    'https://app.sastamail.com/api/v1',
    '*|api_token|*'
);
$client->subscriber()->create([
    'list_uid' => '5fade5c93e42a',
    'EMAIL' => '[email protected]',
    'tag' => 'foo,bar,tag+with+space,',
    'FIRST_NAME' => 'Marine',
    'LAST_NAME' => 'Joze',
]);
{
    "status": 1,
    "message": "Confirmation email sent to the subscriber",
    "subscriber_uid": "5fd07ca421da0"
}