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.
What counts as delivered
A delivery succeeds when your endpoint answers with any 2xx status within 10 seconds. Anything else — another status, a redirect, a timeout, a connection error — is a failed attempt.
- ClearDP → Your endpoint: POST erasure.requested
- Your endpoint: Verify signature, check delivery id
- Your endpoint → Your queue: Enqueue the deletion job
- Your endpoint → ClearDP: 200 OKwell inside the time limit
- Your queue: Delete the data, at its own pace
Only the status code matters, not the response body, and redirects are not followed. Keep the handler to the essentials: verify, record the delivery id, queue the work, answer.
Retries
A failed delivery is tried again on this schedule. Each attempt is signed afresh, with a new timestamp, so it passes your replay check.
| Attempt | Sent |
|---|---|
| 1 | As soon as the event happens |
| 2 | 1 minute after the previous attempt |
| 3 | 5 minutes after the previous attempt |
| 4 | 30 minutes after the previous attempt |
| 5 | 2 hours after the previous attempt |
| 6 | 12 hours after the previous attempt |
That covers an outage of about 14 hours. If all 6 attempts fail, the delivery is marked Dead and is not tried again until someone redelivers it.
Delivery statuses
- Pending
- Queued, or being sent right now.
- Success
- Your endpoint answered 2xx within the time limit.
- Failed
- The last attempt failed. Another attempt is scheduled.
- Dead
- All 6 attempts failed. Nothing more is sent until someone redelivers it.
Duplicates
Delivery is at least once. If your endpoint processed a delivery but the answer was lost or late, the same delivery comes again. Every retry and every redelivery keeps the same X-ClearDP-Delivery value, so make your handler idempotent:
- Verify the signature.
- Try to record the delivery id in a table with a unique constraint. If it is already there, answer
200and stop. - Otherwise queue the work and answer
200.
Ordering
Deliveries usually arrive in the order the events happened, but this is not guaranteed — a retry can land after a later event. Write each handler so it is correct on its own:
- Use
createdAtto ignore an event older than the state you already hold — a lateconsent.grantedmust not undo a newer withdrawal. - When the exact current state matters — before a marketing send, say — read it from the API. The current state is the authoritative answer.
Redelivering
Open Deliveries in the dashboard, or View deliveries from an endpoint's menu. Choose Redeliver on a single delivery, or Redeliver all to resend every dead delivery that matches your current filter, for example after an outage. You are asked to confirm first.
- On a Failed delivery — one waiting between retries — the button reads Retry now: it brings the next attempt forward to now, in the same retry cycle and with the same attempt count. After fixing your endpoint, Retry N failed now above the list does this for every failed delivery on screen (it appears for administrators when any are listed), instead of waiting out a back-off of up to 12 hours. The endpoint must be switched on: deliveries to an endpoint that is switched off are not retried.
- On a Dead or Success delivery, Redeliver sends it again from the start. A Pending delivery is being sent right now and cannot be redelivered; try again once it has an outcome.
- A redelivery keeps its
X-ClearDP-Deliveryvalue, so your deduplication drops it if you had in fact processed it. - Redeliver only when your system lost the event — for example, after restoring a backup.
Monitoring
Deliveries lists every delivery with its status, attempts, the event, the response your endpoint gave and, when it failed, a short explanation of the likely cause. Filter by status or endpoint, or search for a delivery id, customer id or event type copied from your own logs.
Each delivery shows its latest attempt only: the attempt number out of 6, the response code or error, the time and the URL it was sent to. Earlier attempts are not stored. Log the X-ClearDP-Delivery header on your side too: it matches a request in your logs with the same delivery in the dashboard, and your own logs are the only record of each attempt you received.
- When an attempt got no HTTP response at all, Last response names the reason instead, such as Connection refused, Host not found, Timed out, TLS error or Not a public address.
- Each delivery shows the URL it was sent to. If you later change the endpoint's URL, older deliveries still show where they actually went. Deliveries made before this was recorded show the endpoint's current address, marked as such.
- Open a delivery and choose Payload sent to see the exact JSON body that was sent to your endpoint. Copy gives the text that was signed and sent; the signature and the delivery id travel in headers, not in the body. It is empty until the first attempt has been made, or when the endpoint's secret could not be read so the delivery could not be signed. It is shown to editors and above, because it names the person the event is about.
- The dashboard's overview says Deliveries failing when there were deliveries in the last two days (today and yesterday, UTC) and none of them succeeded.
Troubleshooting
| What Deliveries shows | What to do |
|---|---|
| 401 or 403 | Your endpoint refused the signature. Check its signing secret matches this endpoint, or rotate it, then redeliver. |
| 404 | Nothing is served at this URL path. Check the endpoint URL. |
| Timed out | Your endpoint took longer than 10 seconds. Reply first, and do slow work afterwards. |
| 413 | Your endpoint rejected the body as too large. Raise its request size limit. |
| 429 | Your endpoint is rate-limiting ClearDP. The delivery is retried; let webhook requests through your limit. |
| 5xx | Your endpoint failed while handling the request. Search its logs for the delivery id. |
| 3xx redirect | Redirects are not followed. Register the final URL — including the trailing slash, if your server adds one. |
| Connection refused | Nothing is listening at this address. Check your server is running, and the URL and port are right. |
| Host not found | The hostname does not resolve. Check the URL for typos and your DNS. |
| TLS error | The endpoint's certificate was not accepted. It must be valid, unexpired and issued by a trusted authority, with the full chain served. |
| Not a public address | Webhooks are not sent to private or local network addresses, including localhost. An endpoint with one is refused when added or edited; an endpoint saved earlier, or whose hostname now resolves to a private address, fails each delivery with this. Register a public https URL; for local development, put a tunnel in front of your receiver (see Testing locally on the Overview page). |
| Nothing arrives at all | Check the endpoint is enabled and subscribed to the event, then send a test ping and look for it under Deliveries. |
After fixing the cause, choose Retry N failed now for deliveries still being retried, and redeliver anything marked Dead.