Webhooks

Replay Deliveries in a Range

Changed on

Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to failed deliveries. Use it to recover events your endpoint missed. The replay runs asynchronously and nothing about it is stored: each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent once, with its original webhook-id unless you pass regenerate_ids. Only available for enabled webhooks on API version v1; deliveries are retained for 30 days.

post/webhooks/{id}/replay

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

Webhook ID, prefixed hook_.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
events, string[]

Only replay these event types, in dot form (for example payment.succeeded). Omit to include every event.

failed_only, boolean

Only replay messages whose most recent delivery attempt in the window failed. Defaults to false. Best-effort: a message whose attempts span processing batches can still be re-sent — replays keep the original webhook-id by default, so consumers that deduplicate are unaffected.

regenerate_ids, boolean

Re-send each replayed message under a freshly generated webhook-id (in both the envelope and the signed headers) instead of its original one. Defaults to false. Use this when your endpoint deduplicates on webhook-id and you want it to process the replays as new messages.

sent_after, string required

Start of the delivery window to replay, as an ISO 8601 timestamp. Clamped to the 30-day delivery retention.

sent_before, string

End of the delivery window to replay, as an ISO 8601 timestamp. Defaults to now.

Example request

{
  "failed_only": true,
  "regenerate_ids": true,
  "sent_after": "2026-01-01T12:00:00.000Z"
}

Response

replay queued

object required
queued, boolean required

Whether the replay was accepted. Watch the webhook's delivery log for the re-sends.

Example response

{
  "queued": true
}

Changes