Skip to main content
POST
/
v1
/
compliance
/
erase
Erase tenant data (GDPR Article 17)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({confirm: '<string>'})
};

fetch('https://sandbox.api.enfinitos.com/v1/compliance/erase', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "tenantId": "<string>",
    "orgId": "<string>",
    "erasedAt": "2023-11-07T05:31:56Z",
    "counts": {
      "bases": 123,
      "rights": 123,
      "offers": 123,
      "challenges": 123,
      "proofPacks": 123,
      "events": 123
    },
    "note": "<string>"
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Body

application/json
confirm
string
required

Double-opt-in confirmation token. Must be exactly "ERASE".

Allowed value: "ERASE"

Response

Erasure receipt.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"