Skip to main content
The Lists SDK methods lets you create / manage list of subscribers. You can then send broadcast to all the users in the list or create a workflow that triggers when a new user enters / exits list.

Create / Update List

You can use suprClient.subscriberLists.create method to create a new list
Guidelines on defining the list_id
  • list_id is case-insensitive. Suprsend first converts list_id to lowercase before storing it or doing any sort of comparison on it.
  • list_id can be of max 64 characters.
  • It can contain characters [a-z0-9_-] that is alphanumeric characters, _(underscore) and -(hyphen).

Get list data

You can get the latest information of a list using  suprClient.subscriberLists.get  method.

Get all lists

To get the data of all the lists created in your workspace, use suprClient.subscriberLists.getAll()  method

Add Subscribers to the list

Use suprClient.subscriberLists.add() to add list subscribers. There is no limit to the number of subscribers that you can add to a list.

Remove Subscribers from the list

You can remove subscribers from the list using suprClient.subscriberLists.remove()

Delete list

You can delete a subscriber list using the supr_client.subscriberLists.delete() method.

Replace users in the List

In case you want to refresh a list with a new set of users completely, you can replace users by creating a draft version of the list and updating users in it.
1

Start Sync to create draft version of the list

This method will create a draft version of the list where you can add the new set of users to replace users.
2

Add Subscribers to draft list

Add subscribers to the draft version created in Step-1. You’ll get version_id in the Start Sync response.
3

Remove Subscribers from draft list

Remove subscribers from the draft version created in Step-1.
4

Finish Sync to make the draft version live

Finalize the sync and make the draft version live.

Delete Draft list

You can also delete a draft list if it was created by mistake.