posthook.toml.
General
- Name: The display name of your project.
- Domain: The base domain for your webhook endpoints. Optional for local development projects without a domain. When set, you can use relative paths when scheduling hooks.
- Custom Authorization Header: An optional value (e.g.,
Bearer my-token) that Posthook will include in theAuthorizationheader of every request.
Retries
Control how Posthook handles failures (non-200 responses or timeouts).- Max Retries: Number of retry attempts (1–15, plan-dependent).
- Retry Delay: Base delay between attempts (5–60 seconds).
- Strategy:
fixed(constant delay) orexponential(increasing delay). Available strategies may vary by plan. - Backoff Factor: Multiplier for each retry when using exponential strategy (e.g.,
2.0). - Max Delay: Upper bound on delay between retries when using exponential strategy.
- Jitter: Add randomness to retry timing to avoid thundering herd (exponential only).
posthook.toml:
Notifications
Configure when and how Posthook notifies you about delivery failures.Channels
Notifications can be sent via Email, Slack, or Custom Webhooks. All channels receive the same alerts. Available channels may vary by plan.Timing
- Group Wait (
group_wait_seconds): When a failure occurs, wait this long before sending a notification so multiple failures get grouped into one alert. Default:120seconds. - Follow-Up Interval (
follow_up_interval_seconds): Minimum time between notifications for the same project. Follow-ups use exponential backoff (e.g., 15m → 30m → 1h → … → 24h cap). Default:900seconds.
Anomaly Detection
Posthook tracks historical failure rates per endpoint and compares them against a recent window. If failure rates spike above the baseline, an alert is triggered at the project level.- Excess Failure Threshold (
excess_failure_threshold): Number of failures above baseline before alerting.0means alert on any excess. Default:0. - Baseline Window (
baseline_window_mins): Historical window for calculating the normal failure rate. Default:60minutes. - Recent Window (
recent_window_mins): Window for detecting spikes against the baseline. Default:5minutes. - Min Deliveries (
min_deliveries): Minimum deliveries needed in the baseline window before anomaly detection kicks in. Prevents false alarms on low-traffic endpoints. Default:5.
Recovery
- Notify on Recovery (
notify_on_recovery): Send an alert when a failing endpoint returns to normal. Default:true.
Example config
Retention
Control how long Posthook stores terminal hooks (completed and failed). Pending and in-retry hooks are retained until they reach a terminal state, then the retention clock starts. After the retention period, records are permanently deleted.
- Maximum: Determined by your plan (Free: 7, Launch: 30, Growth: 60, Scale: 90 days).
- Minimum: 7 days. You can lower retention to any value between 7 days and your plan’s maximum.
posthook.toml:
WebSocket Delivery (Beta)
WebSocket delivery allows you to receive webhooks on your local machine without exposing a public IP or using tools like ngrok.- Toggle WebSocket Delivery on.
- Run the CLI command provided:
- Posthook will accept your scheduled hooks and immediately push them down the WebSocket connection to your CLI, which forwards them to your localhost.
This is intended for development only. For production, we recommend using standard HTTPS delivery.
Applying changes
After editingposthook.toml, preview and deploy: