Skip to main content

Delivery lifecycle

Every time a subscribed event fires, AeoNut sends it to each active webhook that subscribes to that event type. Each event is tried up to 5 times, and every attempt is logged as its own delivery row, so an event that took three tries shows up three times in the log.

Delivery statuses

Each delivery row gets a status worked out from that one attempt:

Retry policy

AeoNut retries a failed delivery on this schedule:
A delivery is considered failed when your endpoint returns a non-2xx HTTP status code, the connection times out (15-second limit), or a connection error occurs.
If all 5 attempts fail, the event isn’t tried again and the webhook’s consecutive_failures counter goes up by one. The counter counts events, not attempts, so an event that failed all 5 times adds 1. Any successful delivery resets it to 0.

Auto-disable

When 10 events in a row fail all of their attempts, AeoNut disables the webhook so it stops sending traffic to an endpoint that isn’t answering. When a webhook is auto-disabled:
  • Its status changes to DISABLED
  • Nothing more is sent, and that includes retries that were already queued. Only test events still go out
  • You can turn it back on with Enable endpoint on the webhook’s page, which resets the failure count to 0
Keep an eye on the Failures column in Settings → Webhooks (consecutive_failures in the API). If it’s climbing, check your endpoint before it reaches 10 and the webhook is disabled.

Viewing delivery history

Open a webhook from Settings → Webhooks and go to the Event deliveries tab. You can filter the list by event type and by status.

Sample delivery log

Delivery fields

The list also returns pagination with from, to, count, per_page, current_page, total, total_pages, next_url and prev_url. You can pass page and per_page (up to 100), and filter with event_type and status (delivered, recovered or failed).

Resending a failed delivery

Open a failed delivery in the log and click Resend. This sends the original event data again in a fresh envelope, with a new timestamp and a new delivery ID in the X-Webhook-Delivery header. It gets its own 5 attempts, and each one shows up as a new entry in the delivery log. The response below is the delivery row you resent.
Only failed deliveries can be resent, so a successful delivery has no Resend button.

Performance stats

The Overview tab on a webhook’s page charts its deliveries (total and failed) and its response time (min, avg and max). The stats endpoint takes a period of 24h, 7d or 30d:

Sample stats response

Best practices

Return a 2xx status as soon as the request arrives, and do the real work afterward, for example in a background job. AeoNut waits 15 seconds for a response before it counts the attempt as failed.
Your endpoint can receive the same event more than once because of retries, so use the X-Webhook-Delivery header to skip ones you’ve handled. Automatic retries keep the same delivery ID, but a manual Resend sends the event with a new one. See Idempotency.
Check the Error rate column in Settings → Webhooks and the charts on each webhook’s Overview tab. A rising error rate usually means your endpoint is struggling.
Push each delivery onto a queue (SQS, Redis, RabbitMQ) and process it from there. That keeps your endpoint quick to answer, so deliveries don’t time out.
Log incoming webhook payloads and your processing results. AeoNut’s delivery history shows what was sent, but your logs capture how your application handled it.