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.
curl -iX POST \'https://api.zaius.com/v3/lists/subscriptions' \-d '[{"list_id": "sample_list","email": "sample@test.com","subscribed": true},{"list_id": "sample_list2","email": "sample@test.com","subscribed": false}]' \-H 'Content-Type: application/json' \-H 'x-api-key: example.apiKey'
// subscribe johnny@zaius.com to newsletter listzaius.subscribe({list_id: 'newsletter', email: 'johnny@zaius.com'});// unsubscribe johnny@zaius.com from newsletter listzaius.unsubscribe({list_id: 'newsletter', email: 'johnny@zaius.com'});