Skip to content
Agentpost robot in sunglasses on a red circleAgentpost

Replays

A replay sends a range of events from history through one webhook subscription or the webhook subscriptions of one endpoint. It is how a receiver gets events accepted before a subscription existed or while it was paused, or rebuilds a range it lost.

What a replay sends

A replay takes events received at or after from and before to that meet its filter. It matches each against its target’s subscriptions and creates separate matches and deliveries. The receipt-time range also applies to imported history. Each new delivery gets its own webhook-id and starts with x-eventwolf-trigger: replay. The event keeps its original source and id for deduplication. The delivery headers describe how retries affect the trigger.

A delivery that failed is better retried than replayed: a retry sends the same delivery again, with its webhook-id.

Current or historical definitions

Every replay must name its definitions.

  • current uses the current filter and target of each non-deleted webhook subscription in the target, including paused subscriptions. A running replay reads those definitions again for each batch. Use it to send history to a new or changed subscription.
  • historical uses the webhook definition in force when each event was received, including versions of subscriptions since deleted. An endpoint replay considers only versions that targeted that endpoint. Pause and resume don’t create versions, so historical replay can match events that arrived while a subscription was paused.

Dry runs

A dry run creates no replay, matches, or deliveries. It counts the filtered events it scanned, the matches, and the delivery records it would create, including any that would be skipped. The preview stops at 5,000 events with partial: true and the last sequence it counted.

Running and canceling

A replay runs in the background, running until it is completed, canceled, or failed, and reports its progress. Canceling stops it between batches. Deliveries already queued continue normally. A replay by endpoint ID requires an active endpoint. A replay by subscription ID with current definitions requires a non-deleted webhook subscription. With historical, only the subscription’s webhook versions can match.

Where to act on it