Skip to main content

Delete contacts from contact lists

DELETE 

/api/partner-gateway/contacts/list/contacts

Removes contacts from contact lists in bulk. Only the memberships are deleted: the contacts and the lists stay.

  • Always required: listIds, the lists to remove the contacts from.
  • Specific contacts: send contactIds. When it is not empty, only those contacts are removed, and allContacts and excludeIdsAllContacts are ignored.
  • Everyone: send allContacts true with an empty contactIds. All the contacts are removed from the lists, except those in excludeIdsAllContacts.
  • Each contact must be a member of each list: to clean several lists, send for each list only the contacts that belong to it.
  • Effect on campaigns: a removed contact is no longer a recipient of the campaigns that target the list, unless it belongs to another list of the same campaign.

A contact that is not in one of the lists stops the call half way. It answers 404, but the pairs are processed list by list and contact by contact: those before the failing one are already removed and stay removed, their list-removal automations may already have run, and repeating the same call fails again on them.

Request​

Responses​

Memberships removed.