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

Webhooks · Delivery & retries

Built for endpoints that sometimes fail

Servers restart and networks drop. ClearDP retries every failed delivery on a fixed schedule, shows the outcome of the latest attempt for every delivery, and lets you send any delivery again from the dashboard.

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.

Answer first, work later
  1. ClearDP → Your endpoint: POST erasure.requested
  2. Your endpoint: Verify signature, check delivery id
  3. Your endpoint → Your queue: Enqueue the deletion job
  4. Your endpoint → ClearDP: 200 OKwell inside the time limit
  5. 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.

Retry schedule
AttemptSent
1As soon as the event happens
21 minute after the previous attempt
35 minutes after the previous attempt
430 minutes after the previous attempt
52 hours after the previous attempt
612 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:

  1. Verify the signature.
  2. Try to record the delivery id in a table with a unique constraint. If it is already there, answer 200 and stop.
  3. 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 createdAt to ignore an event older than the state you already hold — a late consent.granted must 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-Delivery value, 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

Delivery failures and fixes
What Deliveries showsWhat to do
401 or 403Your endpoint refused the signature. Check its signing secret matches this endpoint, or rotate it, then redeliver.
404Nothing is served at this URL path. Check the endpoint URL.
Timed outYour endpoint took longer than 10 seconds. Reply first, and do slow work afterwards.
413Your endpoint rejected the body as too large. Raise its request size limit.
429Your endpoint is rate-limiting ClearDP. The delivery is retried; let webhook requests through your limit.
5xxYour endpoint failed while handling the request. Search its logs for the delivery id.
3xx redirectRedirects are not followed. Register the final URL — including the trailing slash, if your server adds one.
Connection refusedNothing is listening at this address. Check your server is running, and the URL and port are right.
Host not foundThe hostname does not resolve. Check the URL for typos and your DNS.
TLS errorThe 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 addressWebhooks 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 allCheck 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.

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.