Delete contacts
DELETE/api/partner-gateway/contacts
Deletes contacts of your account, permanently. One of ids and notIds is required.
- Delete specific contacts: send
ids, a comma-separated list of contact IDs. Whenidsis present,notIdsis ignored. - Delete all except some: send
notIds, the IDs of the contacts to keep. Every other non-test contact of your account is deleted. - At most 200 IDs in the list used: to delete more contacts, split them over several calls.
- Skipped without an error: test contacts (
isTesttrue) are never deleted, in either mode, and IDs that do not exist in your account are ignored. - What goes with a contact: its contact list memberships, so it is no longer a recipient of future campaigns. The delivery history of past campaigns is kept.
- The response is always
true: it does not tell how many contacts were deleted, and it istrueeven when none was.
notIdscan empty your address book in one call. It deletes every contact you do not list, so check the list before you send it.
Request
Responses
- 200
- 400
- 401
- 500
true. The number of contacts deleted is not returned.
Neither ids nor notIds is sent, or the list used is empty, has more than 200 IDs or contains a value that is not a positive integer. Nothing is deleted.
The API key is missing, invalid, or lacks the CONTACTS operation.
Unexpected server error.