### At-least-once

**Delivery is at-least-once, not guaranteed.** HoneyBook retries a failed delivery for **four hours** with exponential backoff, then stops. The first retry comes about 30 seconds after the first attempt and each wait doubles, up to one hour, with about 10% random jitter. There is no replay: if your endpoint is down for longer than that, the events sent in the meantime are lost for good. To recover after a longer outage, fetch the current state of the affected records from the API.

Because of at-least-once delivery you will sometimes see the same `webhook-id` twice. Handle it by deduplicating; see [Events](#tag/events).

**Duplicates cluster around HoneyBook deployments, and that is within the contract.** A delivery in flight when a deployment happens can be sent again after its first request already reached you. A spike of repeated `webhook-id` values around a deploy is expected.

### What your response means

Respond with a `2xx` as soon as you have stored the event. Do the real work afterwards.

| Your response                                                | What HoneyBook does                                                                           |
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------- |
| `2xx`                                                        | Success. The delivery is complete.                                                            |
| `3xx`                                                        | Failure. Redirects are not followed and the delivery stops. Update the webhook's URL instead. |
| `410 Gone`                                                   | The delivery stops and is not retried.                                                        |
| `413 Payload Too Large`                                      | The delivery stops and is not retried.                                                        |
| Any other `4xx`, any `5xx`                                   | Retried until the four-hour window ends.                                                      |
| No answer within the 8-second timeout, or a connection error | Retried until the four-hour window ends.                                                      |
| The URL resolves to a private or otherwise blocked address   | The delivery stops and is not retried.                                                        |

A `401` or `404` is retried because it often means your receiver is mid-deploy. If you want HoneyBook to stop sending, delete the webhook rather than returning an error. A webhook is disabled automatically when its deliveries have been failing for a full four-hour window with no success in between: a failed attempt that finds the first failure of the current streak at least four hours old disables it, and any successful delivery resets the streak. A disabled webhook receives nothing, and deliveries in flight for it stop at their next attempt. Re-enable it with `PATCH /api/v3/webhooks/{id}` and `"status": "active"`; the URL is validated again and the failure count reset. Re-enabling counts against the limit of 20 active webhooks.

A delivery in progress also stops, without further attempts, if you delete the webhook, change its `endpoint_url`, or remove the event type from it.

### Retries and timestamps

Each retry is a new attempt of the same event, with the same `webhook-id` and body. The `webhook-timestamp` header is **regenerated on every attempt** and the signature is recomputed with it, so a retry an hour later still verifies. Reject a delivery whose `webhook-timestamp` is more than **five minutes** from your clock. `webhook-attempt` tells you which attempt this is.

### Networking

HoneyBook's egress IP addresses are **not static**. Do not allowlist them in a firewall; authenticate a delivery by verifying its signature.

### Stopping delivery

**Revoking an account holder's grant does not stop delivery.** Delete the webhook (`DELETE /api/v3/webhooks/{id}`) to stop it.

### Ordering and attribution

Deliveries are not ordered. Attribute a delivery by the `subscription_id` in the body: it is the `id` of the webhook this delivery is for, as returned when you created it, so it maps to the connection that created that webhook and one endpoint can serve several connections. It is in the body, which the signature covers, so it cannot be swapped on a replayed delivery.
