Create List
Creates a contact list. A static list holds the members you add explicitly; a dynamic list stores a filter and recomputes its members on read, so contacts join and leave automatically as their properties change. Set contactsFilterGroups for a dynamic list.
Authorization
Authorization In: header
Path Parameters
ID of the project that will own the list.
Request Body
application/json
Attribute filters combined with groupType.
Contact attribute distinct id to filter on.
Attribute type. Defaults to string when omitted.
Comparison operator for the attribute value.
Value to compare the attribute against.
Event filters evaluated over the last 24 hours only.
Analytics event name.
Whether the contact performed the event in the last 24 hours.
How filters in this group are combined.
When true, the group is ANDed with $subscribed == true. Set by email sending, not the filter UI.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://www.saasco.com/api/v2/projects/string/crm/contact-lists" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "contactsFilterGroups": [ { "filters": [ { "attributeDistinctId": "string", "operator": "equals", "value": "string" } ], "groupType": "AND" } ] }'{
"id": "string",
"createdAt": "string",
"updatedAt": "string",
"name": "string",
"description": "string",
"type": "static",
"contactsFilterGroups": [
{
"filters": [
{
"attributeDistinctId": "string",
"attributeType": "string",
"operator": "equals",
"value": "string"
}
],
"oneDayEventFilters": [
{
"eventName": "string",
"operator": "performed"
}
],
"groupType": "AND",
"requireSubscribed": true
}
],
"projectId": "string"
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Get List
Fetches a single contact list with its configuration, including the filter definition for a dynamic list. Members are not included. Use List Members for those.
Update List
Updates a contact list's name, description, type, or filter. Only the fields present in `changes` are written. Editing the filter on a dynamic list changes who is in it immediately, since membership is evaluated on read.