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" } }
| Field | Type | Description |
|---|---|---|
| id | string | The event id (evt_…). The same event can reach several endpoints; each gets its own delivery id. |
| type | string | The event type, for example consent.withdrawn. |
| v | integer | The payload version. Currently 1. |
| createdAt | string (date-time) | When the event happened, in UTC. |
| propertyKey | string | The 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. |
| data | object | The event body. Its fields depend on the event type and are listed for each event below. |
Headers
| Header | Description |
|---|---|
| Content-Typeapplication/json | Every delivery body is JSON. |
| X-ClearDP-Eventconsent.withdrawn | The event type. The same value as type in the body, so you can route before parsing. |
| X-ClearDP-Deliverywhd_01j8z3q6v2f0m4k9r7s5t1w8xa | The 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=5f2c8d0e9b7a41c3a6e2d4f18b9c0e7d3a5b6c8f1e2d4a7b9c0d3e5f6a8b1c2d | The 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.
Consent
- consent.granted
- consent.denied (action required)
- consent.withdrawn (action required)
- consent.expired (action required)
- consent.renewed
- consent.stale
Rights requests and grievances
Erasure
- erasure.requested (action required)
- erasure.completed
- principal.erased (action required)
Breach incidents
- incident.notify (action required)
- incident.sla_breached
Testing
Consent
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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| artifactId | string | The consent record written for this decision (art_…). |
| principalId | string | The person (prn_…). Map it to your own customer. |
| propertyId | string | The property. |
| purposeKey | string | The purpose, for example marketing_emails. |
| purposeVersion | integer | The purpose version the decision applies to. |
| noticeVersionId | string | The privacy notice version the person saw. |
| action | string | GRANT, DENY, WITHDRAW, EXPIRE or RENEW. |
| status | string | The consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED. |
| language | string | The language the notice was shown in. |
| seq | string | The record's position in the property's tamper-evident log. A string, not a number. |
| occurredAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| artifactId | string | The consent record written for this decision (art_…). |
| principalId | string | The person (prn_…). Map it to your own customer. |
| propertyId | string | The property. |
| purposeKey | string | The purpose, for example marketing_emails. |
| purposeVersion | integer | The purpose version the decision applies to. |
| noticeVersionId | string | The privacy notice version the person saw. |
| action | string | GRANT, DENY, WITHDRAW, EXPIRE or RENEW. |
| status | string | The consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED. |
| language | string | The language the notice was shown in. |
| seq | string | The record's position in the property's tamper-evident log. A string, not a number. |
| occurredAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| artifactId | string | The consent record written for this decision (art_…). |
| principalId | string | The person (prn_…). Map it to your own customer. |
| propertyId | string | The property. |
| purposeKey | string | The purpose, for example marketing_emails. |
| purposeVersion | integer | The purpose version the decision applies to. |
| noticeVersionId | string | The privacy notice version the person saw. |
| action | string | GRANT, DENY, WITHDRAW, EXPIRE or RENEW. |
| status | string | The consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED. |
| language | string | The language the notice was shown in. |
| seq | string | The record's position in the property's tamper-evident log. A string, not a number. |
| occurredAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| artifactId | string | The consent record written for this decision (art_…). |
| principalId | string | The person (prn_…). Map it to your own customer. |
| propertyId | string | The property. |
| purposeKey | string | The purpose, for example marketing_emails. |
| purposeVersion | integer | The purpose version the decision applies to. |
| noticeVersionId | string | The privacy notice version the person saw. |
| action | string | GRANT, DENY, WITHDRAW, EXPIRE or RENEW. |
| status | string | The consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED. |
| language | string | The language the notice was shown in. |
| seq | string | The record's position in the property's tamper-evident log. A string, not a number. |
| occurredAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| artifactId | string | The consent record written for this decision (art_…). |
| principalId | string | The person (prn_…). Map it to your own customer. |
| propertyId | string | The property. |
| purposeKey | string | The purpose, for example marketing_emails. |
| purposeVersion | integer | The purpose version the decision applies to. |
| noticeVersionId | string | The privacy notice version the person saw. |
| action | string | GRANT, DENY, WITHDRAW, EXPIRE or RENEW. |
| status | string | The consent's status now: GRANTED, DENIED, WITHDRAWN or EXPIRED. |
| language | string | The language the notice was shown in. |
| seq | string | The record's position in the property's tamper-evident log. A string, not a number. |
| occurredAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| propertyId | string | The property. |
| purposeKey | string | The purpose that changed. |
| version | integer | The new purpose version. |
| principalIds | string[] | 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| rightsId | string | The request id (rr_…). |
| propertyId | string | The property. |
| principalId | string | The person the request is from. |
| externalId | string or null | Your own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased. |
| type | string | ACCESS, CORRECTION, ERASURE or NOMINATION. |
| status | string | NEW. |
| dueAt | string (date-time) | Your organisation's own response deadline. |
| statutoryDueAt | string (date-time) | The legal deadline. |
| createdAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| rightsId | string | The request id. |
| propertyId | string | The property. |
| principalId | string | The person. |
| externalId | string or null | Your own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased. |
| type | string | ACCESS, CORRECTION, ERASURE or NOMINATION. |
| fromStatus | string | The previous stage. |
| toStatus | string | The new stage. |
| resolutionNoteoptional | string | Present 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| rightsId | string | The request id. |
| propertyId | string | The property. |
| principalId | string | The person. |
| externalId | string or null | Your own id for the person, the one you sent when you recorded their consent. null when they have none, or once they are erased. |
| type | string | ACCESS, CORRECTION, ERASURE or NOMINATION. |
| threshold | string | DUE or STATUTORY: which deadline is 7 days away. |
| dueAt | string (date-time) | Your organisation's own response deadline. |
| statutoryDueAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| commentId | string | The comment id (cmt_…). |
| body | string | The full text of the comment, exactly as your team wrote it. It may contain personal data. |
| createdAt | string (date-time) | When the comment was posted. |
| rightsId | string | The request the comment belongs to. |
| propertyId | string | The property. |
| principalId | string | The person the request is from. |
| externalId | string or null | Your 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| grievanceId | string | The complaint id (grv_…). |
| propertyId | string | The property. |
| principalIdoptional | string | The person, when the complaint is linked to one. |
| externalIdoptional | string or null | Your own id for the person, sent together with principalId. null when they have none, or once they are erased. |
| subject | string | The complaint's subject line. |
| status | string | OPEN. |
| dueAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| grievanceId | string | The complaint id. |
| propertyId | string | The property. |
| principalIdoptional | string | The person, when linked. |
| externalIdoptional | string or null | Your own id for the person, sent together with principalId. null when they have none, or once they are erased. |
| fromStatus | string | The previous stage. |
| toStatus | string | The new stage. |
| resolutionNoteoptional | string | Present 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| commentId | string | The comment id (cmt_…). |
| body | string | The full text of the comment, exactly as your team wrote it. It may contain personal data. |
| createdAt | string (date-time) | When the comment was posted. |
| grievanceId | string | The complaint the comment belongs to. |
| propertyId | string | The property. |
| principalIdoptional | string | The person, when the complaint is linked to one. |
| externalIdoptional | string or null | Your 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| propertyId | string | The property. |
| principalId | string | The person. |
| purposeKeys | string[] | The purposes whose data must be deleted. |
| reason | string | WITHDRAWN, EXPIRED or RIGHTS_REQUEST. |
| rightsIdoptional | string | Present 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| propertyId | string | The property. |
| principalId | string | The person. |
| purposeKeys | string[] | The purposes that were erased. |
| reason | string | Why the erasure happened, usually RIGHTS_REQUEST. |
| rightsIdoptional | string | The erasure request, when there is one. |
| taskIdoptional | string | Present 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| propertyId | string | The property. |
| principalId | string | The person. |
| rightsId | string | The erasure request. |
| reason | string | RIGHTS_REQUEST. |
| erasedAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| incidentId | string | The incident id (inc_…). |
| propertyId | string | The property. |
| severity | string | LOW, MEDIUM, HIGH or CRITICAL. |
| title | string | A short description of the incident. |
| detectedAt | string (date-time) | When the breach was detected. |
| affectedCount | integer | How many people are affected. |
| affectedPrincipalsPath | string | GET 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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| incidentId | string | The incident id. |
| propertyId | string | The property. |
| severity | string | LOW, MEDIUM, HIGH or CRITICAL. |
| title | string | A short description of the incident. |
| detectedAt | string (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.
| Field | Type | Description |
|---|---|---|
| v | integer | The payload version, the same value as v in the envelope. Currently 1. |
| type | string | ping. |
| propertyId | string | The property. |
| message | string | A 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
- Person → ClearDP: Withdraws consent for a purpose
- ClearDP → Your systems: consent.withdrawnstop processing for this purpose
- ClearDP → Your systems: erasure.requestedpurposeKeys: what to delete
- 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
- Your team → ClearDP: Activates a new version of a purpose
- ClearDP → Your systems: consent.staleup to 500 people per event
- Your systems → Person: Optional: prompt them to review
- Person → ClearDP: Reviews choices in the consent banner
- 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.
- Person → Your team: Asks to see, correct or erase their data
- Your team → ClearDP: Records the request in the dashboard
- ClearDP → Your systems: rights.created
- Your team → ClearDP: Verifies the person, starts work
- ClearDP → Your systems: rights.status_changedVERIFYING, then IN_PROGRESS
- ClearDP → Your systems: rights.sla_warningonly if 7 days from a deadline
- Your team → ClearDP: Completes or rejects it
- 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:
consent.withdrawnfor any consent still in force;erasure.completedwith reasonRIGHTS_REQUEST(later, if your systems are connected for erasure — see below);rights.status_changedtoCOMPLETED;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
- Your team → ClearDP: Records a breach, chooses to notify
- ClearDP → Your systems: incident.notify
- Your systems → Affected people: In-app notice, email, or both
- ClearDP → Your systems: incident.sla_breachedonly if the deadline passes