Paragon webhooks in production: duplicates, retries and timeouts

Published · Updated

This guide covers the problems Paragon's monitoring Webhook Destinations can cause in production and how to handle each one. What Paragon sends and how to set up a destination is on the Paragon webhooks overview, its two events are on Paragon webhook events, and the header check is on Verify Paragon webhooks. Managed Sync webhooks are a separate feature, covered here only where the two get confused.

At a glance

ProblemWhat to doWith Event Gateway
TimeoutsRespond with a 2xx first; process in a background jobAnswers Paragon on arrival, then queues the notification for your service
DuplicatesKey on data.workflowExecution.id; limit reconnect prompts per userCan drop repeats before they reach your handler
RetriesKeep the destination enabled; check Monitoring after an outageKeeps your service's errors away from Paragon, and retries them
Choosing eventsRoute on type; keep Managed Sync on its own endpointFilters and routes notifications on the body
TestingUse Test Webhook, then one real workflow failureForwards to localhost and replays past notifications
Other limitsKeep the default payload; check credentialStatus before contacting a customerChecks the header and reshapes the body per destination

Paragon webhook timeouts and slow handlers

Paragon states no timeout for Webhook Destinations, so respond quickly with a 2xx and do the work afterwards.

Why it happens: The docs say a destination receives a POST and that non-2xx responses count against it, but not how long Paragon waits for a response. A handler that emails a customer or posts to an on-call tool before responding depends on that service's speed.

Fix it in your handler:

  1. Check the header, store the notification and return a 2xx straight away.
  2. Send alerts and emails from a background job.
  3. Don't return an error because a downstream service failed. Retry that step yourself, so it doesn't count against the destination.

With Event Gateway: Event Gateway answers Paragon on arrival and queues each notification, so a slow handler doesn't hold Paragon's request open.

Duplicate Paragon webhooks

Paragon doesn't say whether it can send a monitoring event twice, and the default body has no event ID, so make your handler safe to run again.

Why it happens: With no documented delivery rules, you can't rule out a repeat. Managed Sync's at-least-once delivery and stable id belong to that feature, so don't assume either applies here.

Fix it in your handler:

  1. For workflow_failure, skip a data.workflowExecution.id you've already processed.
  2. For credentials_failure, build a key from user.id, integration.id and timestamp. Nobody has confirmed that a repeat keeps the same timestamp, so also limit reconnect prompts per user and integration.
  3. Make handlers idempotent, so opening an incident that's already open does nothing.

With Event Gateway: Hookdeck's deduplication can drop repeats based on the body fields you choose.

Paragon webhook retries and disabled destinations

Paragon documents no retries for Webhook Destinations, and too many errors can switch a destination off.

Why it happens: Paragon says a destination "may be automatically disabled" after too many non-2xx responses for consecutive events. It doesn't publish the threshold, or say whether it tells you when this happens. While a destination is disabled, you don't hear about failures.

Fix it in your handler:

  1. Return a 2xx once the header checks out, whatever happens to your processing afterwards.
  2. After any outage, open Settings > Monitoring and confirm the destination is still enabled.
  3. Keep the project's default Email Destination as a backup. Paragon creates it for Workflow Failure events.
  4. Recover what you missed: review failed workflow executions and Connected Users with account errors in Paragon's Monitoring tab.

With Event Gateway: Event Gateway answers Paragon as soon as the request is stored, so errors in your own service never count against the destination. It then delivers to your service with automatic retries, and Issues alert you when deliveries fail.

Choosing Paragon events

Paragon sends two events that need different handling, so route on type.

Why it happens: A workflow_failure usually means something for your team to fix, while a credentials_failure needs your customer to act. Paragon also says more events are coming, and Managed Sync webhooks use a different field, payload and setup page.

Fix it in your handler:

  1. For workflow_failure, alert your team and link to data.executionUrl, which points at the failed run in Paragon's dashboard.
  2. For credentials_failure, use user.id and integration.type to ask that user to reconnect. Paragon suggests sending them back to the Connect Portal.
  3. Acknowledge a type you don't recognize rather than failing it, since an error counts against the destination.
  4. Send Managed Sync webhooks to their own endpoint, where you route on event. They also send a webhook_verification request when you save the URL.

With Event Gateway: Filters can send each type to a different destination. Hookdeck's Paragon source covers monitoring Webhook Destinations only, so give Managed Sync its own source and URL.

Testing Paragon webhooks

Use Test Webhook first, then trigger one real workflow failure, because Paragon doesn't show what the test request contains.

Why it happens: The docs give an example body for each event but none for the test request, so it may not match either one.

Try it:

  1. Click Test Webhook on the destination, log what arrives and return a 2xx, even if type isn't one you handle.
  2. To test locally, use the Hookdeck CLI: hookdeck listen 3000 paragon --path /webhooks/paragon.
  3. Make a workflow fail for a test user in a project you can safely alert from, and compare the body with Paragon's examples.
  4. For credentials_failure, test with the example body. A real one needs an OAuth refresh that fails with an error Paragon can't retry.

With Event Gateway: The Hookdeck CLI forwards deliveries to your machine, and you can replay a stored notification while you work on your handler.

Other Paragon webhook limits

A destination's body changes with its configuration, and its requests aren't signed.

Why they happen: Webhook Destinations are a configurable HTTP request, with no signature and a template field that replaces the body.

Fix it in your handler:

  1. A custom payload changes the contract. Request Payload replaces the event object with what the template selects. Keep the default for your own code, and if you do use a template, include type, user.id and integration.
  2. Nothing is signed. A static header authenticates the sender but not the body, and gives no replay protection. Use a long random value over HTTPS, and keep it out of logs.
  3. A forged request can reach a customer. Before you act automatically on a credentials_failure, check credentialStatus with Paragon's SDK (paragon.getUser()).
  4. Paid plans and Admins only. Webhook Destinations need a paid plan, and only Admin users can manage Event Destinations.
  5. No source IPs. Paragon's page lists no egress IPs for destinations, so don't plan on an IP allowlist.

With Event Gateway: Enter the header name and exact value from the destination on a Hookdeck source with the Paragon type, including any Bearer prefix. A request without a matching header is recorded as failed verification and creates no event, so it never reaches your service. Keep the default payload going to Hookdeck and use transformations to reshape it per destination, so one Paragon destination can feed several tools.

Keep a failing receiver from switching off your Paragon alerts.

Paragon may disable a destination that keeps returning errors, and it documents no retries. Hookdeck Event Gateway accepts each notification straight away, checks your secret header, then queues it and retries to your service on your schedule.

Not affiliated with Paragon. Facts are compiled from public sources and linked inline.