Docs/webhooks

Retry Policy & Delivery

Understand how Rehabify retries webhook deliveries upon failure.

Webhook Retry Policy

Rehabify guarantees at-least-once delivery for all webhook events. If your endpoint is down, slow, or responds with an HTTP status other than 2xx, our dispatcher will automatically retry with exponential backoff.


Retry Schedule

We attempt up to 8 delivery retries over a 24-hour period:

AttemptDelayCumulative Elapsed Time
InitialImmediate0s
Retry 115 seconds15s
Retry 21 minute1m 15s
Retry 35 minutes6m 15s
Retry 430 minutes36m 15s
Retry 52 hours2h 36m
Retry 66 hours8h 36m
Retry 712 hours20h 36m
Final Retry24 hours44h 36m

Idempotency & Duplicate Handling

Because network delays can cause duplicate delivery attempts, your webhook handler should be idempotent.

[!TIP] Always store the X-Rehabify-Delivery-Id or event id in your database. If you receive a webhook with an ID you have already processed, return 200 OK immediately without re-executing business logic.


Response Timeout

Your webhook endpoint must respond with an HTTP status within 10,000 ms (10 seconds). Requests exceeding 10 seconds are terminated and flagged for retry.

Retry Policy & Delivery | Rehabify Docs | Physio Around Me by Rehabify Health