Create a bulk erasure: anonymizes contacts by email (cap of 100,000), in batches. Nothing changes until `:run`
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/contact-erasures';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"emails":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/contact-erasures \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "emails": [ "example" ] }'Bulk erasure = anonymization (the same path as a compliance erasure request): email, name, language, time zone, fields and tags are removed; the contact, its history and its suppression remain. It is irreversible. Then POST /v1/contact-erasures/{id}:run processes the next batch (up to 500) and is repeated until status: completed. More than 100,000 emails: 400 erasure_too_many.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Emails of the contacts to anonymize; max 100000 per operation.
Example generated
{ "emails": [ "example" ]}Responses
Section titled “Responses”Erasure created
object
Brand contacts that will be anonymized (max 100,000).
Requested emails that are not brand contacts: they are ignored.
object
object
Example
{ "status": "running"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}