Lists can be created on the platform or programmatically via API.
Currently, only static lists can be created via API.
Creating a list via API
In order for a list to be used, it must first be set to published status, which then allows individuals to be added via operation creation (see how create an operation).
Prior to this publication, the entire configuration remains editable.
Whatever the status of the list, its name and expiry date can be updated at any time.
IDs required to create a campaign refer to information to which the account has access through other endpoints:
- Group_id: list of groups from endpoint
/settings/groups - optin_id: list of consents accessible for each group from endpoint
/groups/{id}/optins
When created, the API returns several pieces of information, including the id of the list. It is possible to interact with it thanks to the following endpoints:
- To retrieve all the information that defines it on the endpoint
/lists/{id}. - To feed this list from the endpoint
/lists/{id}/operations - To use this list in a targeting parameter within a campaign
Conclusion
List creation is simplified: all that remains is to feed it for use in a Sendingly campaign.