Skip to content
Website API / Visitors

Erase everyone identified with an email

POSThttps://<your Reveata origin>/api/v1/websites/{website}/visitors/erase

Like erasing a visitor, for every visitor identified with this email (browser or server identify) or linked to its payments, and anonymises payments and customer rows carrying the email. Answers 404 when nothing is held for it. Needs the admin role and an access token with visitors:write.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Headers

Authorizationstringrequired

Bearer followed by an account token or an OAuth access token with the visitors:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

emailstringrequired

Response

What was deleted and anonymised.

{
  "status": "string",
  "data": {
    "visitorIds": [],
    "events": 0,
    "sessions": 0,
    "visitors": 0,
    "payments": 0,
    "customers": 0,
    "subscriptions": 0,
    "exports": 0,
    "days": []
  }
}

Response fields

FieldTypeDescription
status"ok"
dataobject
data.visitorIdsstring[]
data.eventsinteger
data.sessionsinteger
data.visitorsinteger
data.paymentsinteger
data.customersinteger
data.subscriptionsinteger
data.exportsinteger
data.daysstring[]