Create a List
API to create / manage lists to send notification to a bulk list of users. To create a Segment List — a list whose membership is driven by a SQL query against your users and events tables — pass list_type: dynamic_list along with the query.
Authorizations
Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.
Body
Unique string identifier of the list. Add an id which defines the type of users who are part of the list.
Name of the List. Add a name which defines the type of users in the list.
Brief description of the list and the type of users in it.
Type of the list. Use dynamic_list to create a Segment List whose membership is driven by a SQL query. Defaults to static_list.
static_list, dynamic_list SQL query defining the segment. Required when list_type: dynamic_list. Must return a distinct_id column and reference only the users and events tables. See the Segment Lists doc for the full dialect reference.
"SELECT distinct_id FROM users WHERE CAST(user_properties ->> 'lifetime_value' AS DOUBLE PRECISION) >= 2500"
Only applies to dynamic_list. When true, the segment starts syncing immediately after create. When false, the query is saved but the segment does not refresh until you enable it.
Response
201
Unique identifier of the list.
"product_updates"
Name of the list.
"Product Update"
Brief description of the list.
"Users subscribed to the newsletter"
Type of the list.
static_list, dynamic_list number of users in the list
source info on how the list is updated
"database_sync"
Indicates whether the list is read-only.
false
For dynamic_list only. Whether the segment is actively refreshing.
true
For dynamic_list only. The committed SQL query that defines the segment.
"SELECT distinct_id FROM users WHERE CAST(user_properties ->> 'lifetime_value' AS DOUBLE PRECISION) >= 2500"
Current status of the list (active or draft).
"active"
Event $USER_ENTERED_LIST - <list_id> is generated when user is added this list. Use this to trigger workflow on user entry.
Event $USER_EXITED_LIST - <list_id> is generated when user is removed from this list. Use this to trigger workflow on user exit.
Indicates whether the list has been requested for deletion.
false
Timestamp when the list was created.
"2024-02-21T19:10:01.906000Z"
Timestamp when the list was last updated.
"2025-04-04T07:25:43.186475Z"
would show the draft list created to replace list users.
For dynamic_list only. Metadata about the sync task that runs the segment query, including the currently active version and any uncommitted draft.