Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getList AllgetGet ListpostCreate ListputUpdate ListdelDelete List
CRMLists

Delete List

View as MarkdownAgent setup

Deletes a contact list. The contacts themselves are untouched. Only the list and its membership records go. Any campaign still targeting this list loses its audience. Cannot be undone.

DELETE
/projects/{projectId}/crm/contact-lists/{contactListId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the list.

contactListIdrequiredstring

ID of the contact list to delete.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/projects/string/crm/contact-lists/string"
{  "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"}

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.

List Members

Lists the contacts in a list, with a total `count`. Works for both list kinds. A dynamic list's membership is computed from its filter at read time. Use Query List Members instead when you need extra filtering or to choose which properties come back.