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 MembersgetGet List MemberpostQuery List MemberspostAdd to ListdelRemove from ListgetGet Contact Lists
CRMList Members

List Members

View as MarkdownAgent setup

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.

GET
/projects/{projectId}/crm/contact-lists/{contactListId}/members

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the list.

contactListIdrequiredstring

ID of the contact list to read.

Query Parameters

contactDistinctIdstring

Only return the membership for this contact.

orderBystring

Field to sort by.

Value in: "name" | "createdAt" | "updatedAt"
orderDirectionstring

Sort direction. Ignored unless orderBy is set.

Value in: "asc" | "desc"
skipnumber

Number of members to skip before collecting results.

Default: 0
takenumber

Maximum number of members to return.

Default: 24

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects/string/crm/contact-lists/string/members"
{  "count": 0,  "data": [    {      "id": "string",      "createdAt": "string",      "updatedAt": "string",      "projectId": "string",      "distinctId": "string",      "email": "string",      "toDelete": true,      "properties": {        "age": 0,        "avatar": "http://example.com",        "birthday": "string",        "createdAt": "string",        "description": "string",        "displayName": "string",        "email": "user@example.com",        "firstName": "string",        "gender": "string",        "id": "string",        "lastName": "string",        "name": "string",        "phone": "string",        "title": "string",        "username": "string",        "website": "string",        "$id": "string",        "$lastSeen": "string",        "$lastIdentifiedAt": "string",        "$processedAt": "string",        "$unsubscribed": true,        "$subscribed": true,        "$unsubscribeReason": "manual",        "$unsubscribeSource": "string",        "$emailValidated": true,        "$lastEmailValidatedAt": "string",        "$emailValidationResult": "string",        "$emailScore": 0,        "$stripeCustomerId": "string",        "$os": "string",        "$browser": "string",        "$browserVersion": "string",        "$screenHeight": 0,        "$screenWidth": 0,        "$screenDpi": 0,        "$device": "string",        "$userAgent": "string",        "$ip": "string",        "$timezone": "string",        "$city": "string",        "$country": "string",        "$countryCode": "string",        "$continent": "string",        "$region": "string",        "$locale": "string",        "$latitude": 0,        "$longitude": 0,        "$referrer": "string",        "$referringDomain": "string",        "$initialReferrer": "string",        "$initialReferringDomain": "string",        "$utmSource": "string",        "$utmMedium": "string",        "$utmCampaign": "string",        "$utmTerm": "string",        "$utmContent": "string",        "$initialUtmSource": "string",        "$initialUtmMedium": "string",        "$initialUtmCampaign": "string",        "$initialUtmTerm": "string",        "$initialUtmContent": "string",        "$_toDelete": true,        "$_emailScoreActions": "string",        "property1": "string",        "property2": "string"      },      "contactListMemberId": "string"    }  ]}

Delete List

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.

Get List Member

Fetches a single list-membership record by its own ID. Note this is the membership ID, not the contact's distinct ID. To check whether a given contact is in a list, use List Members with `contactDistinctId`.