Contacts
Erase contacts
POST/v1/contacts/erase
Requires an API key with the contacts:delete scope. About keys and scopes
Deletes up to 100 contacts by contactId, email or externalId, with their events, memberships, consent history and journey enrollments, and reports an outcome per identifier. Journey messages go with the enrollments; campaign and transactional messages are kept for campaign totals but anonymised: the address, content and provider ids are removed and nothing links them to the person. Address suppressions are kept, so an erased address that is imported again is still not mailed. sendInProgress means a message was being handed to the provider; retry that one shortly. Requires contacts:delete; agent keys are refused.
Request body
contactsobject[]requiredat least 1 item · at most 100 items
One of 3 shapes
- By contact id
1 child attribute
contactIdstringrequireduuid
- By email
1 child attribute
emailstringrequired
- By external id
1 child attribute
externalIdstringrequired1–255 characters
Returns
Returns 200 OK with a EraseContactsResult in data. Otherwise returns an error; Errors lists every code and which to retry.
resultsobject[]required2 child attributes
contactobjectrequiredThe identifier as sent.
outcomestringrequiredsend_in_progress: a message is being handed to the provider; retry shortly.one of
erased,not_found,send_in_progress