Skip to main content

Find contacts in a contact list

GET 

/api/partner-gateway/contacts/list/:listId/contacts

Returns the contacts of one contact list, with the same filters, sorting and pagination as GET /contacts.

  • Same as GET /contacts with listIds set to this list, once the list is found in your account. Test lists are found like any other list.
  • Filters add up: search, gender, isValid, communicationSupported, isTest, phoneNumber, email and the consent filters are combined with AND.
  • Consent filters: emailStatus, emailTrackingStatus, smsStatus, waStatus and rcsStatus take comma-separated values among OPTIN, OPTOUT and NONE. With smsStatus=OPTIN, for example, you get the members of the list who opted in to SMS.
  • Pagination and sorting: page is 0-based, limit goes from 1 to 1000 (default 10), sortBy defaults to fullName and sortOrder is asc or desc.
  • Not supported: filtering by lastContactType or lastCampaignType is refused with 400.

Use it to preview the audience of a list before a campaign, or to check which contacts a file upload imported.

Request​

Responses​

One page of the contacts of the list that match the filters.