Skip to content

Responding and retries

Respond with any 2xx within 7 seconds, before doing any slow work. Anything else counts as a failure: a redirect (3xx), a 4xx or 5xx, a timeout, or no connection.

After a failure Dime retries automatically, waiting about 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours, 24 hours and 24 hours between attempts. That is nine attempts over about 3 days. Retries from a backlog are spread out, so they do not all arrive at once. While retries remain the delivery is PENDING, and next_attempt_at says when the next one is due. After the ninth failure it is FAILED.

If you answer 429 or 503 with a Retry-After header, the next attempt waits that long when it is longer than the scheduled wait, up to 24 hours.

A retry is the same event: the same event_id, event_type, resource, payload and occurred_at, with a new signature and the next X-Dime-Attempt. GET /webhook-events/{token} lists every attempt with its response status and error.

To recover sooner, or after a delivery has FAILED, replay it with POST /webhook-events/{token}/replay. A replay replaces the event's pending retries, so the event is not also delivered by them. It carries the same event_id, event_type, resource and payload; occurred_at and the signature are those of the replay.

Set is_active: false on an endpoint to stop deliveries. Its pending retries stop too, and are marked FAILED. Events are still recorded while it is paused and can be replayed.