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, andallContactsandexcludeIdsAllContactsare ignored. - Everyone: send
allContactstrue with an emptycontactIds. All the contacts are removed from the lists, except those inexcludeIdsAllContacts. - 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
- 200
- 400
- 401
- 404
- 500
Memberships removed.
The body is missing, listIds is empty, or allContacts is false and contactIds is not provided.
The API key is missing, invalid, or lacks the CONTACTS operation.
One of the listIds is not a contact list of your account, or one of the contactIds is not a contact of your account or is a test contact: nothing is removed. It is also the answer when a contact is not a member of one of the lists: the pairs processed before it are already removed.
Unexpected server error.