Launching soon. Sign-ups are not open yet. Join the waitlist and we will write to you when they are.

Webhooks · Event reference

Every event, and what to do with it

18 events in one consistent envelope. For each: when it is sent, what your system should do, its fields, and an example body.

Launching soon

The managed service is not open yet: https://app.cleardp.in does not accept requests and accounts cannot be created. These pages describe the API as it ships. Join the waitlist to hear when it opens.

The envelope

Every delivery has the same outer shape. Route on type, then read the event-specific fields from data.

# POST body — application/json
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.withdrawn",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "artifactId": "art_01j8z3q6tz0b4d8f2h6k1m5p9r",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "marketing_emails",
    "purposeVersion": 1,
    "noticeVersionId": "ntv_01j7m5a9c3e7g1j4l6n8q0s2u4",
    "action": "WITHDRAW",
    "status": "WITHDRAWN",
    "language": "en",
    "seq": "1042",
    "occurredAt": "2026-09-29T10:04:02.512Z"
  }
}
Envelope fields
FieldTypeDescription
idstringThe event id (evt_…). The same event can reach several endpoints; each gets its own delivery id.
typestringThe event type, for example consent.withdrawn.
vintegerThe payload version. Currently 1.
createdAtstring (date-time)When the event happened, in UTC.
propertyKeystringThe property's slug: a short, URL-safe name such as acme-store-4f9c2a1b. It is not the publishable pk_… key and not the property id (prop_…). To match an event to a property, use propertyId in data.
dataobjectThe event body. Its fields depend on the event type and are listed for each event below.

Headers

Delivery headers
HeaderDescription
Content-Typeapplication/jsonEvery delivery body is JSON.
X-ClearDP-Eventconsent.withdrawnThe event type. The same value as type in the body, so you can route before parsing.
X-ClearDP-Deliverywhd_01j8z3q6v2f0m4k9r7s5t1w8xaThe delivery id. It stays the same on every retry and on a redelivery, so it is the key to deduplicate on.
X-ClearDP-Signaturet=1727605442531,v1=5f2c8d0e9b7a41c3a6e2d4f18b9c0e7d3a5b6c8f1e2d4a7b9c0d3e5f6a8b1c2dThe signing timestamp in Unix milliseconds and the HMAC-SHA256 signature. See Verifying signatures.

All events

Events marked Action required mean your systems must change what they do with someone's data. The rest keep your records in step.

What a person agreed to, and every change to it. These are the events most integrations need first.

consent.granted

Informational#

A person said yes

When it is sent
A person agreed to a purpose, from the consent banner, your own form or the privacy portal.
What to do
You may start using their data for that purpose. Store the principalId against your own customer record if you have not already.
Fields of the consent.granted data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
artifactIdstringThe consent record written for this decision (art_…).
principalIdstringThe person (prn_…). Map it to your own customer.
propertyIdstringThe property.
purposeKeystringThe purpose, for example marketing_emails.
purposeVersionintegerThe purpose version the decision applies to.
noticeVersionIdstringThe privacy notice version the person saw.
actionstringGRANT, DENY, WITHDRAW, EXPIRE or RENEW.
statusstringThe consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED.
languagestringThe language the notice was shown in.
seqstringThe record's position in the property's tamper-evident log. A string, not a number.
occurredAtstring (date-time)When the decision was recorded.
Example delivery
# POST body — consent.granted
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.granted",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "artifactId": "art_01j8z3q6tz0b4d8f2h6k1m5p9r",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "analytics",
    "purposeVersion": 1,
    "noticeVersionId": "ntv_01j7m5a9c3e7g1j4l6n8q0s2u4",
    "action": "GRANT",
    "status": "GRANTED",
    "language": "en",
    "seq": "1042",
    "occurredAt": "2026-09-29T10:04:02.512Z"
  }
}

consent.denied

Action required#

A person said no

When it is sent
A person refused a purpose: left it off, or chose Reject all, for a purpose not currently agreed to. For a purpose they had agreed to, the banner (switching it off or Reject all) records a withdrawal instead; a refusal sent from your own integration for such a purpose still arrives here.
What to do
Do not use their data for that purpose. If they had agreed before, stop and delete what that purpose produced, exactly as for a withdrawal.
Fields of the consent.denied data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
artifactIdstringThe consent record written for this decision (art_…).
principalIdstringThe person (prn_…). Map it to your own customer.
propertyIdstringThe property.
purposeKeystringThe purpose, for example marketing_emails.
purposeVersionintegerThe purpose version the decision applies to.
noticeVersionIdstringThe privacy notice version the person saw.
actionstringGRANT, DENY, WITHDRAW, EXPIRE or RENEW.
statusstringThe consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED.
languagestringThe language the notice was shown in.
seqstringThe record's position in the property's tamper-evident log. A string, not a number.
occurredAtstring (date-time)When the decision was recorded.
Example delivery
# POST body — consent.denied
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.denied",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "artifactId": "art_01j8z3q6tz0b4d8f2h6k1m5p9r",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "analytics",
    "purposeVersion": 1,
    "noticeVersionId": "ntv_01j7m5a9c3e7g1j4l6n8q0s2u4",
    "action": "DENY",
    "status": "DENIED",
    "language": "en",
    "seq": "1042",
    "occurredAt": "2026-09-29T10:04:02.512Z"
  }
}

consent.withdrawn

Action required#

A person took back a yes

When it is sent
A person withdrew a consent they had given: switched it off in the banner's choices, used the privacy portal, or your integration called withdraw.
What to do
Stop using their data for that purpose and delete what it produced. An erasure.requested event for the same purpose follows.
Fields of the consent.withdrawn data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
artifactIdstringThe consent record written for this decision (art_…).
principalIdstringThe person (prn_…). Map it to your own customer.
propertyIdstringThe property.
purposeKeystringThe purpose, for example marketing_emails.
purposeVersionintegerThe purpose version the decision applies to.
noticeVersionIdstringThe privacy notice version the person saw.
actionstringGRANT, DENY, WITHDRAW, EXPIRE or RENEW.
statusstringThe consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED.
languagestringThe language the notice was shown in.
seqstringThe record's position in the property's tamper-evident log. A string, not a number.
occurredAtstring (date-time)When the decision was recorded.
Example delivery
# POST body — consent.withdrawn
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.withdrawn",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "artifactId": "art_01j8z3q6tz0b4d8f2h6k1m5p9r",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "marketing_emails",
    "purposeVersion": 1,
    "noticeVersionId": "ntv_01j7m5a9c3e7g1j4l6n8q0s2u4",
    "action": "WITHDRAW",
    "status": "WITHDRAWN",
    "language": "en",
    "seq": "1042",
    "occurredAt": "2026-09-29T10:04:02.512Z"
  }
}

consent.expired

Action required#

A consent ran out

When it is sent
A consent reached the end of the retention period set on its purpose.
What to do
Treat it exactly like a withdrawal: stop the processing and delete what it produced. An erasure.requested event follows.
Fields of the consent.expired data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
artifactIdstringThe consent record written for this decision (art_…).
principalIdstringThe person (prn_…). Map it to your own customer.
propertyIdstringThe property.
purposeKeystringThe purpose, for example marketing_emails.
purposeVersionintegerThe purpose version the decision applies to.
noticeVersionIdstringThe privacy notice version the person saw.
actionstringGRANT, DENY, WITHDRAW, EXPIRE or RENEW.
statusstringThe consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED.
languagestringThe language the notice was shown in.
seqstringThe record's position in the property's tamper-evident log. A string, not a number.
occurredAtstring (date-time)When the decision was recorded.
Example delivery
# POST body — consent.expired
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.expired",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "artifactId": "art_01j8z3q6tz0b4d8f2h6k1m5p9r",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "analytics",
    "purposeVersion": 1,
    "noticeVersionId": "ntv_01j7m5a9c3e7g1j4l6n8q0s2u4",
    "action": "EXPIRE",
    "status": "EXPIRED",
    "language": "en",
    "seq": "1042",
    "occurredAt": "2026-09-29T10:04:02.512Z"
  }
}

consent.renewed

Informational#

A person confirmed a consent again

When it is sent
A person agreed again to a purpose whose consent had expired. When a person agrees again to a purpose that changed, you receive consent.granted instead (see consent.stale).
What to do
Clear any renewal reminder you show them. The consent is current again.
Fields of the consent.renewed data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
artifactIdstringThe consent record written for this decision (art_…).
principalIdstringThe person (prn_…). Map it to your own customer.
propertyIdstringThe property.
purposeKeystringThe purpose, for example marketing_emails.
purposeVersionintegerThe purpose version the decision applies to.
noticeVersionIdstringThe privacy notice version the person saw.
actionstringGRANT, DENY, WITHDRAW, EXPIRE or RENEW.
statusstringThe consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED.
languagestringThe language the notice was shown in.
seqstringThe record's position in the property's tamper-evident log. A string, not a number.
occurredAtstring (date-time)When the decision was recorded.
Example delivery
# POST body — consent.renewed
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.renewed",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "artifactId": "art_01j8z3q6tz0b4d8f2h6k1m5p9r",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "analytics",
    "purposeVersion": 1,
    "noticeVersionId": "ntv_01j7m5a9c3e7g1j4l6n8q0s2u4",
    "action": "RENEW",
    "status": "GRANTED",
    "language": "en",
    "seq": "1042",
    "occurredAt": "2026-09-29T10:04:02.512Z"
  }
}

consent.stale

Informational#

A consent needs to be asked again

When it is sent
Your team activated a new version of a purpose. People who agreed to the earlier version are marked for review. One event lists up to 500 people; larger groups arrive as several events.
What to do
Optionally prompt these people to review their choices. The consent banner asks them again on its own, and does not treat a consent under review as given.
Fields of the consent.stale data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
propertyIdstringThe property.
purposeKeystringThe purpose that changed.
versionintegerThe new purpose version.
principalIdsstring[]The people who need to be asked again (up to 500 per event).
Example delivery
# POST body — consent.stale
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "consent.stale",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "purposeKey": "analytics",
    "version": 2,
    "principalIds": [
      "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
      "prn_01j8x4e7q9s1v3x5z7c9e1g3j5"
    ]
  }
}

Rights requests and grievances

Requests to see, correct or erase personal data, and complaints. They arrive through the privacy portal, are logged by your team in the dashboard, or by your server through the API; your team handles them in the dashboard, and these events keep your own systems in step.

rights.created

Informational#

A rights request was opened

When it is sent
A request from a person was recorded: access, correction, erasure or nomination, filed in the privacy portal, logged by your team, or logged by your server (POST /v1/rights-requests).
What to do
Record it against the customer and show it in their account. Prepare whatever your team will need to answer it.
Fields of the rights.created data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
rightsIdstringThe request id (rr_…).
propertyIdstringThe property.
principalIdstringThe person the request is from.
externalIdstring or nullYour own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased.
typestringACCESS, CORRECTION, ERASURE or NOMINATION.
statusstringNEW.
dueAtstring (date-time)Your organisation's own response deadline.
statutoryDueAtstring (date-time)The legal deadline.
createdAtstring (date-time)When the request was recorded.
Example delivery
# POST body — rights.created
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "rights.created",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "rightsId": "rr_01j8z9k2m4p6r8t0v2x4z6b8d0",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214",
    "type": "ACCESS",
    "status": "NEW",
    "dueAt": "2026-10-29T10:15:30Z",
    "statutoryDueAt": "2026-12-28T10:15:30Z",
    "createdAt": "2026-09-29T10:15:30Z"
  }
}

rights.status_changed

Informational#

A rights request moved on

When it is sent
Your team moved a request to its next stage: NEW, VERIFYING, IN_PROGRESS, COMPLETED or REJECTED.
What to do
Update the status you show. On COMPLETED or REJECTED, tell the person; resolutionNote carries the note your team wrote for them.
Fields of the rights.status_changed data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
rightsIdstringThe request id.
propertyIdstringThe property.
principalIdstringThe person.
externalIdstring or nullYour own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased.
typestringACCESS, CORRECTION, ERASURE or NOMINATION.
fromStatusstringThe previous stage.
toStatusstringThe new stage.
resolutionNoteoptionalstringPresent when your team wrote a note, usually on completion or rejection.
Example delivery
# POST body — rights.status_changed
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "rights.status_changed",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "rightsId": "rr_01j8z9k2m4p6r8t0v2x4z6b8d0",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214",
    "type": "ACCESS",
    "fromStatus": "IN_PROGRESS",
    "toStatus": "COMPLETED",
    "resolutionNote": "A copy of your data was sent to your registered email."
  }
}

rights.sla_warning

Informational#

A rights request is nearly due

When it is sent
An open request is 7 days from a deadline. Sent once per deadline: DUE for your own response deadline, STATUTORY for the legal one.
What to do
Alert whoever owns the request so it is answered on time.
Fields of the rights.sla_warning data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
rightsIdstringThe request id.
propertyIdstringThe property.
principalIdstringThe person.
externalIdstring or nullYour own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased.
typestringACCESS, CORRECTION, ERASURE or NOMINATION.
thresholdstringDUE or STATUTORY: which deadline is 7 days away.
dueAtstring (date-time)Your organisation's own response deadline.
statutoryDueAtstring (date-time)The legal deadline.
Example delivery
# POST body — rights.sla_warning
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "rights.sla_warning",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "rightsId": "rr_01j8z9k2m4p6r8t0v2x4z6b8d0",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214",
    "type": "ACCESS",
    "threshold": "DUE",
    "dueAt": "2026-10-29T10:15:30Z",
    "statutoryDueAt": "2026-12-28T10:15:30Z"
  }
}

rights.comment_added

Informational#

Your team replied to a rights request

When it is sent
A member of your team posted a reply on a rights request that the person can read in their privacy portal, either as a reply or together with a status change. A comment marked as an internal note is never sent.
What to do
Show the reply in your own app or support tool if you want the person to see it there too. body is the full text of the comment and can contain personal data, so store and log it as you would any other personal data.
Fields of the rights.comment_added data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
commentIdstringThe comment id (cmt_…).
bodystringThe full text of the comment, exactly as your team wrote it. It may contain personal data.
createdAtstring (date-time)When the comment was posted.
rightsIdstringThe request the comment belongs to.
propertyIdstringThe property.
principalIdstringThe person the request is from.
externalIdstring or nullYour own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased.
Example delivery
# POST body — rights.comment_added
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "rights.comment_added",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "commentId": "cmt_01j8zd9j1l3n5q7s9u1w3y5a7c",
    "body": "We have sent a copy of your data to your registered email address.",
    "createdAt": "2026-10-02T09:30:00Z",
    "rightsId": "rr_01j8z9k2m4p6r8t0v2x4z6b8d0",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214"
  }
}

grievance.created

Informational#

A complaint was raised

When it is sent
A complaint about how personal data was handled was raised in the privacy portal or logged by your team.
What to do
Open a ticket in your support tool. principalId is absent when the complaint is not linked to a known person.
Fields of the grievance.created data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
grievanceIdstringThe complaint id (grv_…).
propertyIdstringThe property.
principalIdoptionalstringThe person, when the complaint is linked to one.
externalIdoptionalstring or nullYour own id for the person, sent together with principalId. null when they have none, or once they are erased.
subjectstringThe complaint's subject line.
statusstringOPEN.
dueAtstring (date-time)The response deadline.
Example delivery
# POST body — grievance.created
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "grievance.created",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "grievanceId": "grv_01j8za3c5e7g9j1l3n5q7s9u1w",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214",
    "subject": "I received an offer after unsubscribing",
    "status": "OPEN",
    "dueAt": "2026-10-29T11:00:00Z"
  }
}

grievance.status_changed

Informational#

A complaint moved on

When it is sent
Your team moved a complaint to its next stage: OPEN, IN_PROGRESS, RESOLVED or REJECTED.
What to do
Update or close the ticket, and tell the person the outcome.
Fields of the grievance.status_changed data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
grievanceIdstringThe complaint id.
propertyIdstringThe property.
principalIdoptionalstringThe person, when linked.
externalIdoptionalstring or nullYour own id for the person, sent together with principalId. null when they have none, or once they are erased.
fromStatusstringThe previous stage.
toStatusstringThe new stage.
resolutionNoteoptionalstringPresent when your team wrote a note.
Example delivery
# POST body — grievance.status_changed
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "grievance.status_changed",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "grievanceId": "grv_01j8za3c5e7g9j1l3n5q7s9u1w",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214",
    "fromStatus": "IN_PROGRESS",
    "toStatus": "RESOLVED",
    "resolutionNote": "Removed from all marketing lists."
  }
}

grievance.comment_added

Informational#

Your team replied to a complaint

When it is sent
A member of your team posted a reply on a complaint that the person can read in their privacy portal, either as a reply or together with a status change. A comment marked as an internal note is never sent.
What to do
Show the reply in your own app or support tool if you want the person to see it there too. body is the full text of the comment and can contain personal data, so store and log it as you would any other personal data.
Fields of the grievance.comment_added data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
commentIdstringThe comment id (cmt_…).
bodystringThe full text of the comment, exactly as your team wrote it. It may contain personal data.
createdAtstring (date-time)When the comment was posted.
grievanceIdstringThe complaint the comment belongs to.
propertyIdstringThe property.
principalIdoptionalstringThe person, when the complaint is linked to one.
externalIdoptionalstring or nullYour own id for the person, sent together with principalId. null when they have none, or once they are erased.
Example delivery
# POST body — grievance.comment_added
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "grievance.comment_added",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "commentId": "cmt_01j8zd9j1l3n5q7s9u1w3y5a7d",
    "body": "We have removed your address from all marketing lists.",
    "createdAt": "2026-10-02T11:15:00Z",
    "grievanceId": "grv_01j8za3c5e7g9j1l3n5q7s9u1w",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "externalId": "user_98214"
  }
}

Erasure

Personal data your own systems must delete, and confirmation that deletion is complete.

erasure.requested

Action required#

Delete someone's data

When it is sent
A consent was withdrawn or expired, or an erasure request moved to IN_PROGRESS (after the person was verified), so your systems delete before your team confirms the request complete. purposeKeys lists the purposes whose data must go.
What to do
Delete, from every system you run, the data each listed purpose produced for this person.
Fields of the erasure.requested data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
propertyIdstringThe property.
principalIdstringThe person.
purposeKeysstring[]The purposes whose data must be deleted.
reasonstringWITHDRAWN, EXPIRED or RIGHTS_REQUEST.
rightsIdoptionalstringPresent when reason is RIGHTS_REQUEST.
Example delivery
# POST body — erasure.requested
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "erasure.requested",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "purposeKeys": [
      "marketing_emails"
    ],
    "reason": "WITHDRAWN"
  }
}

erasure.completed

Informational#

Deletion was confirmed

When it is sent
An erasure finished. For an erasure request (reason RIGHTS_REQUEST) this follows your team completing it; if your organisation connects its systems for erasure, it follows every connected system confirming.
What to do
For reason RIGHTS_REQUEST, make sure the person's personal data is gone from your systems, keeping only records the law requires you to keep.
Fields of the erasure.completed data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
propertyIdstringThe property.
principalIdstringThe person.
purposeKeysstring[]The purposes that were erased.
reasonstringWhy the erasure happened, usually RIGHTS_REQUEST.
rightsIdoptionalstringThe erasure request, when there is one.
taskIdoptionalstringPresent when the erasure ran across connected systems.
Example delivery
# POST body — erasure.completed
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "erasure.completed",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "purposeKeys": [
      "analytics",
      "marketing_emails"
    ],
    "reason": "RIGHTS_REQUEST",
    "rightsId": "rr_01j8zb5e7g9j1l3n5q7s9u1w3y"
  }
}

principal.erased

Action required#

A person's record was erased

When it is sent
After an erasure request is completed, the person's identifying details are removed from consent records too. The records themselves are kept as proof, without anything that identifies the person.
What to do
Final confirmation: make sure nothing personal is left in your systems. Handle it so that running it twice is harmless.
Fields of the principal.erased data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
propertyIdstringThe property.
principalIdstringThe person.
rightsIdstringThe erasure request.
reasonstringRIGHTS_REQUEST.
erasedAtstring (date-time)When the details were removed.
Example delivery
# POST body — principal.erased
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "principal.erased",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "principalId": "prn_01j8x2c5n7q3t9w1y4b6d8f0h2",
    "rightsId": "rr_01j8zb5e7g9j1l3n5q7s9u1w3y",
    "reason": "RIGHTS_REQUEST",
    "erasedAt": "2026-09-30T09:12:44Z"
  }
}

Breach incidents

A personal-data breach recorded by your team, and the deadline for telling the people affected.

incident.notify

Action required#

Tell people about a breach

When it is sent
Your team recorded a breach and chose to notify the people affected. The event concerns the whole property, so it has no principalId.
What to do
Fetch the affected people from affectedPrincipalsPath and tell them through your own channels: a notice in your app, an email, or both, with the contents Rule 7 requires (see /docs/rights/#breach). Breach notices are not marketing and do not depend on marketing consent.
Fields of the incident.notify data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
incidentIdstringThe incident id (inc_…).
propertyIdstringThe property.
severitystringLOW, MEDIUM, HIGH or CRITICAL.
titlestringA short description of the incident.
detectedAtstring (date-time)When the breach was detected.
affectedCountintegerHow many people are affected.
affectedPrincipalsPathstringGET it with a secret key (GET /v1/incidents/{incidentId}/affected-principals): the affected people on this property, paged.
Example delivery
# POST body — incident.notify
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "incident.notify",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "incidentId": "inc_01j8zc7g9j1l3n5q7s9u1w3y5a",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "severity": "HIGH",
    "title": "Delivery partner exposed shipping addresses",
    "detectedAt": "2026-09-28T10:00:00Z",
    "affectedCount": 120,
    "affectedPrincipalsPath": "/v1/incidents/inc_01j8zc7g9j1l3n5q7s9u1w3y5a/affected-principals"
  }
}

incident.sla_breached

Informational#

A breach notice is overdue

When it is sent
The deadline for notifying people about a breach has passed.
What to do
Escalate internally. This is an alert for your compliance team rather than something to show customers.
Fields of the incident.sla_breached data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
incidentIdstringThe incident id.
propertyIdstringThe property.
severitystringLOW, MEDIUM, HIGH or CRITICAL.
titlestringA short description of the incident.
detectedAtstring (date-time)When the breach was detected.
Example delivery
# POST body — incident.sla_breached
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "incident.sla_breached",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "incidentId": "inc_01j8zc7g9j1l3n5q7s9u1w3y5a",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "severity": "HIGH",
    "title": "Delivery partner exposed shipping addresses",
    "detectedAt": "2026-09-28T10:00:00Z"
  }
}

Testing

Sent on request, to check an endpoint is set up correctly.

ping

Informational#

Test event

When it is sent
Someone pressed Send test ping on the endpoint in the dashboard. It is sent whatever events the endpoint is subscribed to.
What to do
Verify the signature and answer 2xx. If it shows as Success in Deliveries, your URL and signing secret are right.
Fields of the ping data object
FieldTypeDescription
vintegerThe payload version, the same value as v in the envelope. Currently 1.
typestringping.
propertyIdstringThe property.
messagestringA fixed message.
Example delivery
# POST body — ping
{
  "id": "evt_01j8z3q6tz5n2c7h4m9p0r3s6v",
  "type": "ping",
  "v": 1,
  "createdAt": "2026-09-29T10:04:02.531Z",
  "propertyKey": "acme-store-4f9c2a1b",
  "data": {
    "v": 1,
    "type": "ping",
    "propertyId": "prop_01j7m4p8r2t6w0y3b5d7f9h1k3",
    "message": "ping from ClearDP"
  }
}

Workflows

Events rarely arrive alone. These are the common sequences, in the order they usually arrive. Order is not guaranteed, so make each handler correct on its own.

Consent withdrawn: stop, then delete

Withdrawal
  1. Person → ClearDP: Withdraws consent for a purpose
  2. ClearDP → Your systems: consent.withdrawnstop processing for this purpose
  3. ClearDP → Your systems: erasure.requestedpurposeKeys: what to delete
  4. Your systems: Delete what those purposes produced

consent.expired follows the same path when a consent reaches the end of its retention period. A consent.denied for a purpose the person had agreed to before means the same thing: stop, and delete.

A purpose changes: ask again

New purpose version
  1. Your team → ClearDP: Activates a new version of a purpose
  2. ClearDP → Your systems: consent.staleup to 500 people per event
  3. Your systems → Person: Optional: prompt them to review
  4. Person → ClearDP: Reviews choices in the consent banner
  5. ClearDP → Your systems: consent.grantedor consent.denied if switched off

A rights request, from start to finish

Rights requests and grievances arrive through the privacy portal, are logged by your team in the ClearDP dashboard, or by your server (rights guide). Your team handles them in the dashboard; webhooks keep your own systems — your customer account pages, your support tool — in step.

Rights request
  1. Person → Your team: Asks to see, correct or erase their data
  2. Your team → ClearDP: Records the request in the dashboard
  3. ClearDP → Your systems: rights.created
  4. Your team → ClearDP: Verifies the person, starts work
  5. ClearDP → Your systems: rights.status_changedVERIFYING, then IN_PROGRESS
  6. ClearDP → Your systems: rights.sla_warningonly if 7 days from a deadline
  7. Your team → ClearDP: Completes or rejects it
  8. ClearDP → Your systems: rights.status_changedCOMPLETED or REJECTED, with resolutionNote

An erasure request is verified first, then moved to IN_PROGRESS, which sends erasure.requested listing every purpose on record, so your systems delete before your team confirms the deletion. When the request is then completed you receive, typically in this order:

  1. consent.withdrawn for any consent still in force;
  2. erasure.completed with reason RIGHTS_REQUEST (later, if your systems are connected for erasure — see below);
  3. rights.status_changed to COMPLETED;
  4. principal.erased, the final confirmation, shortly after.

A grievance

A complaint raised in the portal or logged by your team sends grievance.created; each move to IN_PROGRESS, RESOLVED or REJECTED sends grievance.status_changed. Use them to open, update and close a ticket in your support tool.

A breach notice

Breach incident
  1. Your team → ClearDP: Records a breach, chooses to notify
  2. ClearDP → Your systems: incident.notify
  3. Your systems → Affected people: In-app notice, email, or both
  4. ClearDP → Your systems: incident.sla_breachedonly if the deadline passes

Start with proof, not promises

Accounts open soon: join the waitlist and we will write to you when yours can be created. The trial is 21 days, no card, starting on Growth. Or answer 8 questions and see your top-3 DPDP risks in 2 minutes.