Webhook Replay & Batch Dispatcher avatar

Webhook Replay & Batch Dispatcher

Pricing

$2.00 / 1,000 successful deliveries

Go to Apify Store
Webhook Replay & Batch Dispatcher

Webhook Replay & Batch Dispatcher

Fan out a batch of JSON events to multiple webhook URLs with retries, cross-run business-key dedupe, failure replay, and one audit row per delivery.

Pricing

$2.00 / 1,000 successful deliveries

Rating

0.0

(0)

Developer

joe

joe

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

19 hours ago

Last modified

Features

Limited permissions

Share

Fan out a batch of JSON events to multiple webhook URLs with retries, business-key deduplication across runs, failure replay, and one audit row per delivery.

Why this Actor exists

Apify already sends webhooks for run lifecycle events (ACTOR.RUN.SUCCEEDED, FAILED, …), retries failed deliveries with exponential backoff, and recommends that receivers dedupe by runId. So "POST an event to a URL with retries" is already free on the platform — an Actor that only does that has no reason to exist.

This Actor covers the part the built-in webhook cannot:

NeedApify built-in webhookThis Actor
PayloadFixed run lifecycle eventsAny JSON events you supply (inline or from a URL)
TargetsOne requestUrl per webhookMany destinations per event, each retried and recorded separately
IdempotencyReceiver must dedupe by runIdBusiness event_id dedupe persisted across runs in the Key-Value Store
RecoveryPlatform retries within one dispatchReplay previously failed events with replayFailed: true
AuditRun logsOne Dataset row per delivery: status, attempts, HTTP code, latency, error, payload hash
Cost rehearsal—dryRun computes the plan without sending a single request

It is a batch Actor, not a 24/7 ingestion endpoint. If you need a public URL that accepts live webhooks around the clock, run the GlueHub relay on your own domain; use this Actor to re-drive, fan out, or reconcile events you already have.

Input

FieldDefaultMeaning
destinations (required)—One or more HTTP(S) URLs — bare strings or {"url": …, "id": …} objects. Every event is POSTed to each.
events[]Arbitrary JSON array. Objects with event_id are deduped by that value; others by a sha256 of the payload.
sourceUrl""Extra events fetched from a JSON endpoint (bare array, {"events":[…]}, or a GlueHub /echo/<token> response).
dedupeKeyevent_idBusiness idempotency field.
maxAttempts31–10 attempts per (event, destination) pair.
backoffSeconds[1, 4, 10]Wait before each retry.
timeoutSeconds10Per-request timeout.
concurrency8Parallel deliveries.
maxEvents1000Hard cap on pairs per run, to bound cost.
hmacSecret""If set, adds X-Glue-Signature: sha256=<HMAC of raw body> and X-Glue-Event-Id.
dryRunfalseEmit audit rows, send nothing, charge nothing.
replayFailedfalseWith no events, reload the previous run's failed events from KVS.
chargeEventName""Pay-Per-Event name; one charge per successful delivery when configured.
allowPrivateTargetsfalseLocal testing only. Off by default for SSRF safety.

Minimal example

{
"destinations": ["https://your-app.example.com/hooks/orders"],
"events": [
{ "event_id": "evt-001", "type": "order.created", "amount": 42 },
{ "event_id": "evt-001", "type": "order.created", "amount": 42 },
{ "event_id": "evt-002", "type": "order.paid", "amount": 42 }
]
}

The duplicate evt-001 is collapsed. Run it again: nothing is re-delivered. Point one destination at a URL that returns 500 and re-run with replayFailed: true to retry only the failures.

Output

Dataset — one row per delivery:

{
"event_id": "evt-001",
"destination": "https://your-app.example.com/hooks/orders",
"status": "delivered",
"attempts": 2,
"http_status": 200,
"last_error": null,
"latency_ms": 1013,
"payload_sha256": "ad092d5e36ba7028",
"at": "2026-11-15T07:16:06+00:00"
}

Key-Value Store — OUTPUT (run summary), SEEN (successfully delivered pairs, for cross-run idempotency), FAILED (failed events, for replay).

Security

Destination URLs are supplied by the person running the Actor. To stop the Actor from being used to POST into private networks or cloud metadata endpoints, private, loopback, link-local, reserved and non-HTTP(S) targets are refused by default. Only allowPrivateTargets: true (intended for local testing) lifts that guard. Optional HMAC signing lets receivers verify authenticity — compute it over the raw request body.

Cost

$2.00 per 1,000 successful deliveries ($0.002 per delivery), billed as the delivery-ok Pay-Per-Event. Nothing else is charged by this Actor: failed deliveries, events skipped as duplicates, and dry runs are free. Platform usage (compute + storage) is included in that price — you are not billed extra for it.

A typical run of 500 events to 2 destinations costs $2.00. Every charge corresponds to a row in the dataset with status: "delivered", so you can reconcile the bill against the output one-to-one. The Actor uses no LLM, no browser and no proxy — just outbound HTTP and a small amount of Key-Value Store state.

Verified

python tests/selftest.py → 36/36 assertions pass against a real local HTTP sink: retries (503→200), exhaustion, multi-destination fan-out, in-run and cross-run dedupe, failure replay, HMAC, dry run, Dataset/KVS writes, Pay-Per-Event charging, destination normalisation, and the full async with Actor platform branch via an SDK stub.

On the Apify platform the published build was run against a live HTTP endpoint: every delivery produced its own dataset row, cross-run dedupe was confirmed by re-running the same input (delivered 2 on the first run, already_delivered_pairs 2 and delivered 0 on the second), and the default input succeeds out of the box.