Lists
Messaging Lists allow grouping of customers for the purposes of tracking their communication preferences. For example, allowing customers to subscribe to a company newsletter or for holiday news.

Full Reference

Quick Reference

API
Web
1
curl -iX POST \
2
'https://api.zaius.com/v3/lists/subscriptions' \
3
-d '[
4
{
5
"list_id": "sample_list",
6
"email": "[email protected]",
7
"subscribed": true
8
},
9
{
10
"list_id": "sample_list2",
11
"email": "[email protected]",
12
"subscribed": false
13
}
14
]' \
15
-H 'Content-Type: application/json' \
16
-H 'x-api-key: example.apiKey'
Copied!
1
// subscribe [email protected] to newsletter list
2
zaius.subscribe({list_id: 'newsletter', email: '[email protected]'});
3
// unsubscribe [email protected] from newsletter list
4
zaius.unsubscribe({list_id: 'newsletter', email: '[email protected]'});
Copied!
Last modified 2yr ago