v2
latestOpenAPI 3.1.12026-07-2613060964.2 KBCreate 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.
post/v1/subscriber_list/
Request body
Example request
{
"query": "SELECT distinct_id FROM users WHERE CAST(user_properties ->> 'lifetime_value' AS DOUBLE PRECISION) >= 2500"
}Response
201
Example response
{
"list_id": "product_updates",
"list_name": "Product Update",
"list_description": "Users subscribed to the newsletter",
"source": "database_sync",
"is_enabled": true,
"query": "SELECT distinct_id FROM users WHERE CAST(user_properties ->> 'lifetime_value' AS DOUBLE PRECISION) >= 2500",
"status": "active",
"created_at": "2024-02-21T19:10:01.906000Z",
"updated_at": "2025-04-04T07:25:43.186475Z"
}