HookRetry

Agency Guide: Webhook Recovery Pro

1. Configuration profiles

A profile is a small, named, versioned JSON file that sets the recovery rules of a store. You keep one file per policy in your own repository and apply it to every store, instead of clicking through settings screens.

{
  "schema": "hookretry-profile",
  "schema_version": "2.0",
  "profile": { "name": "Agency standard", "revision": 3, "description": "Default for retail clients" },
  "policy": {
    "retry":           { "auto": true, "max": 4, "backoff_minutes": [2, 10, 30, 60, 120] },
    "circuit_breaker": { "enabled": true, "threshold": 10, "window_minutes": 5, "cooldown_minutes": 30 },
    "retention":       { "resolved_days": 30, "unresolved_days": 90 },
    "security":        { "encrypt_payloads": true },
    "alerts":          { "email": true, "recipients": "ops@agency.example", "cooldown_minutes": 15 }
  },
  "endpoints": {
    "slack_webhook": { "from_constant": "AGENCY_SLACK_WEBHOOK" }
  }
}

On the screen: the Configuration profile card in the plugin settings. From the command line:

wp hookretry profile-export --name="Agency standard" --revision=3 > agency-standard.json
wp hookretry profile-validate agency-standard.json
wp hookretry profile-diff agency-standard.json
wp hookretry profile-apply agency-standard.json --dry-run
wp hookretry profile-apply agency-standard.json --yes
wp hookretry profile-status
wp hookretry profile-rollback

2. Safe replay of failed webhooks

After an outage of the receiving system you may have hundreds of failed deliveries. Sending them all at once can knock the receiver over again, and sending an old order update can overwrite a newer one. A replay is therefore a throttled job with a check up front:

On the screen: the Safe replay card on the delivery logs tab, which shows progress while the job runs. From the command line (replay-start asks for confirmation unless you add --yes):

wp hookretry replay-plan --topic="order.*" --from=2026-12-01T08:00:00Z --to=2026-12-01T14:00:00Z
wp hookretry replay-start --topic="order.*" --from=2026-12-01T08:00:00Z --to=2026-12-01T14:00:00Z --rate=30 --stop-after=5
wp hookretry replay-status
wp hookretry replay-pause
wp hookretry replay-resume
wp hookretry replay-cancel

Retrying a single delivery, or a few selected ones, by hand stays an explicit choice and is not throttled.

3. Stale-event protection

A failed order.updated delivery is only useful if the receiver does not already know a newer state of that order. Replay and automatic retries therefore compare deliveries of the same resource (the same order, product or customer):

4. Failure triage

When a client says "orders are not reaching the ERP", you want facts before you open a support case. The triage report answers that in one file per store:

wp hookretry triage-summary --hours=48
wp hookretry triage-summary --format=json > store-a.json
wp hookretry triage-export triage-store-a.json --hours=48
wp hookretry triage-merge store-a.json store-b.json store-c.json

5. REST routes

For your own monitoring, the plugin exposes read and control routes under /wp-json/hookretry/v1/. They require an administrator or shop manager account (for example with an application password). Typical ones:

GET  /wp-json/hookretry/v1/health
GET  /wp-json/hookretry/v1/logs
GET  /wp-json/hookretry/v1/triage/summary
GET  /wp-json/hookretry/v1/triage/bundle
GET  /wp-json/hookretry/v1/profile
POST /wp-json/hookretry/v1/replay/plan
GET  /wp-json/hookretry/v1/replay
POST /wp-json/hookretry/v1/replay/pause

6. WP-CLI reference

CommandWhat it does
wp hookretry statusHealth of the recovery system on this store.
wp hookretry logsList delivery records. Filters: --status, --webhook_id, --resource_id, --topic (a trailing * matches a prefix), --http_status, --from, --to, --search, --unresolved, --dead, --limit, --fields, --format.
wp hookretry settings-list|settings-get|settings-setRead and change settings; secrets are shown as set / not set; invalid values are refused.
wp hookretry profile-export|profile-validate|profile-diff|profile-apply|profile-rollback|profile-statusConfiguration profiles.
wp hookretry replay-plan|replay-start|replay-status|replay-pause|replay-resume|replay-cancelSafe replay. replay-plan never sends.
wp hookretry triage-summary|triage-export|triage-mergeFailure triage.
wp hookretry retry <id>Retry one delivery. --mode=regenerate builds the payload from the current data; --force sends even if the order status changed or the circuit breaker is open.
wp hookretry reactivate <webhook_id>Switch a webhook that WooCommerce disabled back on.
wp hookretry cleanup --days=NDelete old log records.
wp hookretry export-settings|import-settingsPlain settings file export and import. Notification endpoints are left out unless you ask for them.

7. Settings reference

SettingProfile pathDefaultRange
auto_retryretry.autoyesyes / no
max_retriesretry.max31–5
backoff_minutesretry.backoff_minutes2, 10, 30, 60, 120five values, 1–1440 minutes each
abort_auto_on_state_changeretry.abort_on_state_changeyesyes / no
cb_enabledcircuit_breaker.enabledyesyes / no
cb_thresholdcircuit_breaker.threshold103–100 failures
cb_windowcircuit_breaker.window_minutes51–1440
cb_cooldowncircuit_breaker.cooldown_minutes305–1440
idempotency_headerdelivery.idempotency_headerX-Idempotency-Keya valid header name
log_all_deliveriesdelivery.log_all_deliveriesnoyes / no (yes needs confirmation in a profile)
retention_daysretention.resolved_days301–365
unresolved_retention_daysretention.unresolved_days900–3650 (0 keeps them)
encrypt_payloadssecurity.encrypt_payloadsyesyes / no (no needs confirmation in a profile)
preserve_data_on_uninstallsecurity.preserve_data_on_uninstallnoyes / no (yes needs confirmation in a profile)
enable_email_alertsalerts.emailyesyes / no
alert_emailsalerts.recipientsemptycomma-separated addresses
alert_disabledalerts.disabled_webhookyesyes / no
enable_recovery_digestalerts.recovery_digestyesyes / no
alert_cooldownalerts.cooldown_minutes151–1440
replay_rate_per_minutenot in profiles201–120
replay_max_age_hoursnot in profiles1681–8760
replay_stop_after_failuresnot in profiles51–100
slack_webhook, discord_webhook, telegram_bot_token, telegram_chat_id, custom_webhookendpoints.*emptyonly from a constant or an environment variable in profiles

8. What the plugin does not do

Questions

Write to support [at] hookretry.com and attach a triage summary if you have one. Back to the product page. Running the API Ingestion Buffer too? See its Agency Guide.