---
title: "EventWolf replays"
description: "Learn what an EventWolf replay sends, which subscription versions it uses, how a dry run previews it, and how a receiver tells a replayed delivery apart."
url: "https://agentpost.tools/docs/eventwolf/concepts/replays"
kind: concept
---

# Replays

A replay sends a range of [events](/docs/eventwolf/concepts/events.md) from history through one webhook [subscription](/docs/eventwolf/concepts/subscriptions.md) 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](/docs/eventwolf/concepts/filters.md). It matches each against its target’s subscriptions and creates separate matches and deliveries. The receipt-time range also applies to [imported history](/docs/eventwolf/concepts/events.md#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](/docs/eventwolf/concepts/deliveries.md#each-attempt) 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

-   [Replay events](/docs/eventwolf/guides/replays.md) previews and runs one.
-   [Replay events](/docs/eventwolf/reference/replays.md#replay-events), [Get a replay](/docs/eventwolf/reference/replays.md#get-a-replay), and [Cancel a replay](/docs/eventwolf/reference/replays.md#cancel-a-replay).
-   The [replays reference](/docs/eventwolf/reference/replays.md).
