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
- Open Webhooks and click the endpoint.
- The Deliveries table shows each event with its Status (
pending,attempting,successorfailed), Attempts and Next try. - 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
200first 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 withGET /v1/emails.
More on causes in Webhook not receiving events and the API reference.