Webhooks

Webhook retries and how to replay a delivery

Short answer

If your endpoint does not answer with a 2xx within 10 seconds, Mailcandor tries again after 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours: 8 attempts over about 28 hours. After 8 failures in a row the endpoint is turned off. Fix it, turn it back on, then press Send again on each missed delivery or call the replay endpoint.

Last checked 16 November 2026

Mailcandor keeps trying when your endpoint is down, and keeps a record of every attempt so you can see what went wrong and send anything again.

The retry schedule

A delivery succeeds when your endpoint answers with a status from 200 to 299 within 10 seconds. Anything else is a failure: a 4xx or 5xx, a redirect (they are not followed), a timeout, or a connection error.

After a failure, the next attempt waits:

Attempt Wait before it
1 Sent straight away
2 5 seconds
3 5 minutes
4 30 minutes
5 2 hours
6 5 hours
7 10 hours
8 10 hours

That is 8 attempts over about 28 hours. Each delivery retries on its own schedule.

When an endpoint is turned off

If one delivery fails all 8 attempts, the delivery is marked failed and the whole endpoint is turned off. Its page then shows Why it is off: “Turned off after 8 failed deliveries in a row. Fix the endpoint, then turn it back on and replay what you missed.”

While an endpoint is off:

  • Pending retries stop.
  • New events are not recorded for it, so they cannot be replayed later.

See what happened to a delivery

  1. Open Webhooks and click the endpoint.
  2. The Deliveries table shows each event with its Status (pending, attempting, success or failed), Attempts and Next try.
  3. Press Details on a row to see every attempt: your endpoint’s status code, the first part of its answer, how long it took, and any connection error.

With the API:

# Deliveries for one endpoint, newest first
curl https://api.mailcandor.com/v1/webhooks/$WEBHOOK_ID/messages \
  -H "Authorization: Bearer $MAILCANDOR_KEY"

# Every attempt for one delivery
curl https://api.mailcandor.com/v1/webhooks/$WEBHOOK_ID/messages/$MESSAGE_ID/attempts \
  -H "Authorization: Bearer $MAILCANDOR_KEY"

Both need a full-access key. Lists page with limit (up to 100) and after.

Replay a delivery

First fix the endpoint and make sure it is turned on. A replay to an endpoint that is off is not sent.

In the dashboard: open the endpoint, find the delivery in Deliveries, and press Send again. It is queued as a fresh delivery with its attempt count reset.

With the API:

curl -X POST \
  https://api.mailcandor.com/v1/webhooks/$WEBHOOK_ID/messages/$MESSAGE_ID/replay \
  -H "Authorization: Bearer $MAILCANDOR_KEY"

The answer is 202 with the message id and its new status.

To replay everything that failed, list the messages, keep those with "status": "failed", and call replay for each. Respect your plan’s rate limit (5, 10 or 50 requests a second).

A replay keeps the original webhook-id and the original payload, and is signed again with the current secret and a fresh timestamp.

Turn an endpoint back on

Open the endpoint and press Turn on, or:

curl -X PATCH https://api.mailcandor.com/v1/webhooks/$WEBHOOK_ID \
  -H "Authorization: Bearer $MAILCANDOR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "enabled"}'

If it does not work

  • Replay shows pending and nothing arrives. The endpoint is still turned off. Turn it on and replay again.
  • Every attempt shows 401 or 403. Your signature check is failing. See Verify webhook signatures.
  • Attempts show 301 or 302. Your URL redirects (often http to https, or a missing trailing slash). Use the final URL.
  • Attempts show a timeout. Answer 200 first and process in the background.
  • You missed events while the endpoint was off. Read the current state of each email with GET /v1/emails/{id}, or list recent ones with GET /v1/emails.

More on causes in Webhook not receiving events and the API reference.

Questions

What counts as a failed delivery?

Any answer outside 200 to 299, a redirect, no answer within 10 seconds, or a connection error. Redirects are not followed.

Does a replay have the same webhook-id?

Yes. A replay keeps the message id, so your duplicate check still works.

Are events kept while my webhook is turned off?

No. Events that happen while an endpoint is off are not recorded for it, so they cannot be replayed. Read missed email states with GET /v1/emails/{id} instead.

Can I replay a delivery that already succeeded?

Yes. Send again works on any delivery in the list, whatever its status.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.