Retries & Error Handling

How PipesBot handles webhook delivery failures.

PipesBot makes 3 delivery attempts when an event happens. If all of them fail, the delivery is marked failed and its payload is kept so you can retry it from the dashboard. There is no automatic retry in the background.

Retry schedule

When your endpoint returns a non-2xx status code or is unreachable, PipesBot tries up to 3 times in total, within about 10 seconds:

AttemptDelayTotal elapsed
1Immediate0s
22 seconds2s
38 seconds10s

What counts as a failure

  • HTTP status codes outside 200-299
  • Connection timeouts (10 second limit)
  • DNS resolution failures
  • Network errors (connection refused, reset, etc.)

After all retries fail

If all 3 attempts fail, the delivery is recorded with status failed, together with the payload, the last error and the attempt count. PipesBot does not retry it again on its own, and does not deliver it over WebSocket instead. On App webhooks, you can retry it from the App's Webhooks tab (see Manual retry) until it is deleted after 7 days (see Retention).

Sandbox number webhooks get the same 3 attempts, but their deliveries are not shown in the dashboard and can't be retried.

Webhooks tab

Every App has a Webhooks tab in the dashboard with its deliveries from the last 7 days. For each delivery it shows the time, event, status, HTTP code, latency and number of attempts. You can filter by status (all, failed, delivered) and by event.

Open a delivery to see its details: webhook-id, URL, timestamps, attempts and last error. Failed deliveries also show the payload. The Send Test button in the App's Settings adds a row too, with event test.

Recording is best-effort: if PipesBot cannot write the log row for a successful delivery, the delivery still succeeds but may not appear in the tab. Use the tab for debugging, not as a complete audit record.

Manual retry

From the Webhooks tab you can retry failed deliveries:

  • Retry sends one failed delivery again.
  • Retry all failed sends failed deliveries oldest first, up to 50 per click. It stops at the first failure. It also stops starting new sends after about 25 seconds, so a click can retry fewer than 50 even when every attempt succeeds. Click Continue (or the button again) to send the rest.

A manual retry makes one attempt, with no backoff. It:

  • Sends the same webhook-id as the original delivery, so deduplicate on it (see Webhook Security).
  • Goes to the App's current webhook URL and is signed with the current secret, not the ones in use when the delivery failed.
  • Deletes the stored payload when it succeeds.

Retention

Delivered events never store the payload. Failed deliveries keep it until they are retried successfully or deleted.

Every row becomes eligible for deletion 7 days after it was created, whatever its status. A cleanup job runs every 30 minutes and deletes eligible rows from the PipesBot database, so deletion can happen up to about 30 minutes after the 7-day mark, or later if the server is down. Database backups can keep a copy for longer, under their own retention. Once a row is deleted, the delivery can no longer be retried.

Requirements for your endpoint

To ensure reliable delivery:

  • Respond quickly. PipesBot enforces a 10-second timeout per request. Do heavy processing asynchronously after responding.
  • Return 2xx on success. Any status outside 200-299 triggers a retry.
  • Be idempotent. The same event can arrive more than once, from the automatic attempts or from a manual retry. Every attempt carries the same webhook-id header on App webhooks, so deduplicate on it (or on messages[].id). See Webhook Security.
  • Use HTTPS. While HTTP is accepted, HTTPS is strongly recommended for production.
  • Keep your endpoint available. Prolonged downtime will exhaust the 3 attempts. Those deliveries are not sent anywhere else: retry them from the Webhooks tab within 7 days.

URL restrictions

Webhook URLs must point to a public server. The following are blocked for security (SSRF protection):

  • localhost, 127.0.0.0/8, ::1
  • Private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
  • Link-local: 169.254.0.0/16, fe80::/10
  • CGNAT: 100.64.0.0/10
  • Non-HTTP schemes (ftp://, file://, etc.)

Template status events

Template status events (template_status_update, BYON template review outcomes) follow the same policy as message events: they get the same 3 delivery attempts, are recorded, are shown in the Webhooks tab and can be retried manually. Before, they were dropped after the 3 failed attempts. See Template Management. On API v2, template status changes are regular message_template_status_update envelopes and follow the same policy.

On this page