How to troubleshoot unhealthy webhooks

Updated:


September 4, 2024

Webhooks deliver events about changes to the data you care about. When something goes wrong, however, we will mark those webhooks as unhealthy. This guide explains how to diagnose and troubleshoot unhealthy webhooks at Unified.to.

Before you begin

This guide assumes you have a basic understanding of:

Diagnose the webhook

The first place to look for debugging information is in the API call logs.

1. Check the webhook status

  1. Log in to your Unified.to account.
  2. Navigate to Webhooks.
  3. Make note of the unhealthy webhook and its connection ID.

2. Review API call logs

  1. Go to API Call Logs.
  2. Filter by the connection ID of the webhook in question. You should see a list of API calls attempted by the webhook (retention depends on your plan; see How long are logs retained).
  3. Click on the latest log entry that threw an error - the status column will display an error code.
  4. Details about the API call will be shown. The Description field will detail the reason the webhook failed and the Status field will show the specific error code itself. For example:
    Screenshot_2024-09-05_at_1.33.44_PM.png

You can also use the Unified API to retrieve a list of your webhooks and API call logs.

API reference: List all webhooks, List all API calls

Troubleshooting webhook error codes

Bad request (400) errors

These errors indicate that something is wrong with the request - in this case, it is likely not a scope or authentication issue but a problem with the integration itself. Please reach out to us or let us know in our Discord server. Thank you!

Authentication (401) and permission (403) errors

A 401 error may indicate that the connection's auth credentials were entered incorrectly, whether it be the API token, a secret, or another value depending on the integration.

A 403 error is often indicative of scope mismatches with the API provider, with Unified.to, or both.

Both of these errors are indicative of an issue with the connection itself, rather than the webhook. Please see: How to troubleshoot unhealthy connections

Subscribe to the notifications webhook to be alerted when your webhooks fail

To learn about any webhook errors as soon as they occur, we recommend that you subscribe to our Notifications webhook to be notified as soon as a webhook's status changes.

  1. Navigate to Settings > Workspace.
  2. Under Notifications webhook URL, enter the URL of the endpoint where you would like to receive notifications.
    1. The payload that will be sent to this endpoint contains:
      id: string // the id of the object or the integration's type
      nonce: number // random number
      sig: string // @deprecated; use sig256. base64(hmac-sha1(id + nonce + event, workspace.secret))
      sig256: string // v1 (existing validators): base64(hmac-sha256(id + nonce + event, workspace.secret))
      data: object // { id, event, description?, environment? }
      sig256v2: string // v2: HMAC-SHA256(workspace.secret, JSON.stringify(data) + String(nonce)); same formula as object / data webhooks
      event: enum // the event that was triggered
      description?: string // optional longer description
      environment?: string // included for connection, webhook, or integration notifications
      

      Signature validation: Existing integrations can keep verifying sig256 with id + nonce + event; that formula is unchanged. To use the same check as object / data webhooks, verify sig256v2 as HMAC-SHA256(workspace.secret, JSON.stringify(data) + String(nonce)). See Best practices for signature validation in the Webhooks reference.
  3. Under Notifications webhook events, select the events you want to be alerted to e.g. WEBHOOK_UNHEALTHY
  4. On your server, handle incoming notifications as you see fit e.g. set up logging, send a message to the engineering team, post on Slack or Discord, etc.

Understanding why webhooks fail

This section will go over why webhooks fail to provide a deeper understanding of how our webhooks work.

Failed to subscribe

Failing to subscribe happens during webhook creation and can be due to multiple reasons: the integration isn't available, insufficient permissions (i.e. scopes mismatch), or bugs.

Note: This only applies to native webhooks.

Failed to refresh token

Before checking for changes, subscribing, or processing a native event, Unified.to refreshes the connection's auth token when needed. If the refresh fails after retries, the webhook is marked unhealthy so no calls run against an expired token. This applies to both virtual and native webhooks. In this case, it is likely an error with the connection itself.

Double-check that the auth credentials for the connection are correct, that the scopes are set correctly (i.e. they haven't been revoked), and then recreate both the connection and its associated webhook.

Failed to read

Failing to read happens when we attempt to retrieve new data from the API provider and are prevented from doing so, whether due to configuration errors (i.e. 401 or 403 errors) or problems with the integration itself.

Double-check that the auth credentials for the connection are correct, that the scopes are set correctly (i.e. they haven't been revoked), and then recreate both the connection and its associated webhook.

Failed to dispatch data

Failing to dispatch data happens when we attempt to send webhook data to your server but the server does not respond or responds with an error.

Make sure your webhook URL is configured correctly when creating the webhook. Respond with a 2xx status once your endpoint has accepted the data, and do heavy processing afterwards. Otherwise, retry behaviour depends on the webhook type. For virtual webhooks, we keep trying to POST to your server for up to approximately 2 weeks before marking the webhook as unhealthy. For native webhooks, delivery is retried 3 times immediately; if those retries fail, the webhook is marked unhealthy and the event isn't redelivered unless the integration sends it again. Keep your endpoint reachable during deploys, or use a virtual webhook where longer recovery matters.

After checking the above, recreate the webhook and try again.

Monitoring webhook health is your responsibility. Unified.to does not resume an unhealthy webhook on its own. After fixing the cause, call Resume an unhealthy webhook subscription, or delete and recreate the webhook. Virtual webhooks that have been unhealthy for more than 7 days can't be resumed; recreate those instead. When a native webhook is resumed, events sent while it was unhealthy aren't re-sent. Subscribe to the notifications webhook (above) for WEBHOOK_UNHEALTHY so you find out when it happens.

Failed to process data

Failing to process data indicates a problem with either the reading or dispatching steps. Refer to the troubleshooting steps above and then recreate the webhook and try again.

A note on our webhook retry mechanism

Unified.to retries failed webhook deliveries automatically. Here's how it works.

When your webhook endpoint is unavailable

  1. If your endpoint is unavailable or returns an error, we'll retry up to 3 times immediately, with a 1-second delay between attempts.
  2. If the error persists, we back off progressively for up to about 2 weeks, maximizing the chance of successful delivery.

The backoff schedule applies to virtual webhooks. Each delayed retry re-reads the page from the integration rather than resending a stored payload, and the read position advances only after a successful delivery. If retries are exhausted, the webhook is marked unhealthy and scheduling stops. Native webhooks stop after the 3 immediate retries and are marked unhealthy.

When the API provider is unavailable

If we can't reach the API provider or have hit their rate limits, we will back off progressively and retry (outlined above). On virtual webhooks, we honour the provider's retry-after hints when it sends them.

Billing for failed and empty runs

You aren't billed for failed reads from the API provider, failed dispatches to your webhook endpoint, or virtual webhook polling runs that find no new data.

See also

Share
All guidesWebhooksWebhook modelVirtual webhooksAccounting Account Type Hierarchy in UnifiedAdvertising Report Metrics by IntegrationAmazon S3: Required IAM PermissionsATS to Vector DB: How to Power Talent Intelligence with Real-Time DataBuilding AI applications with Unified and LangbaseConcur & Concur (Company) — Connection GuideConfigure Greenhouse Native Candidate WebhooksConfigure Salesforce Meetings and Notes for UnifiedConnect Amazon Seller Central to Unified.toConnecting BambooHR via OAuth 2Connecting Google Workspace Integrations with a Service AccountConnecting Unified to your on-prem and self-hosted systemsConnecting your FHIR client with SMART Backend ServicesCorrect WelcomeKit Scopes for Jungle IntegrationCreating Ads using the Unified Ads APICreating Walmart Items via UnifiedEnd-Users, Integrations, and ConnectionsEnterprise-managed authorization (EMA) with a static keyEnterprise-managed authorization (EMA) with a workspace secretEnterprise-managed authorization (EMA) with Microsoft Entra IDExtended observability: pushing API logs to a syslog serverExtended observability — pushing API logs to ClickHouseExtended observability — pushing API logs to Grafana / LokiExtended observability: pushing API logs to SplunkExtended Observability - Pushing API Logs to your Datadog InstanceFacebook Messenger Webhook SetupFHIR API authentication: API keys and SMART Backend ServicesFireflies Integration GuideGetting started with WorkableHandling Delegated vs. Application Scopes in Microsoft IntegrationsHiBob & Unified: connection and time off guideHow long are logs retainedHow to access employees and usersHow to add API support for the Create Activity in CrelateHow to Associate a Connection ID with Your End-UserHow to build a Candidate Assessment product with UnifiedHow to build a candidate sourcing or job board app with Unified.toHow to build a Discord support bot with Unified.to and LangbaseHow to Build a Fintech Application with Unified's Payments APIHow to Build an E-Commerce Product Integration with UnifiedHow to build an invoicing system with Unified.toHow to build Enterprise Search using RAGHow to configure Bullhorn Redirect URI for creating a connectionHow to configure webhooks in HubSpotHow to configure webhooks in Thrive LearningHow to configure webhooks in Toast for UnifiedHow to Connect Anthropic to Real-Time SaaS Data with Unified.to MCP ServerHow to Connect Cohere to Real-Time SaaS Data with Unified.to MCP ServerHow to Connect Google Gemini to Real-Time SaaS Data with Unified.to MCP ServerHow to connect HiBob (Bob) to Unified with OAuth 2.0How to Connect LLMs to Real-Time SaaS Data with Unified.to MCP ServerHow to connect Microsoft Exchange (on-prem) to UnifiedHow to Connect OpenAI to Real-Time SaaS Data with Unified.to MCP ServerHow to connect PCRecruiter (on-prem) to UnifiedHow to connect SAP S/4HANA (on-prem) to UnifiedHow to connect your self-hosted 3CX to UnifiedHow to connect your self-hosted a3ERP to UnifiedHow to connect your self-hosted Act! to UnifiedHow to connect your self-hosted Adobe Commerce (Magento) to UnifiedHow to connect your self-hosted Aquila CMS to UnifiedHow to connect your self-hosted Asterisk to UnifiedHow to connect your self-hosted Atlassian Jira Data Center / Server to UnifiedHow to connect your self-hosted Bagisto to UnifiedHow to connect your self-hosted BookStack to UnifiedHow to connect your self-hosted BTCPay Server to UnifiedHow to connect your self-hosted Chatwoot to UnifiedHow to connect your self-hosted Cisco Finesse to UnifiedHow to connect your self-hosted Defguard to UnifiedHow to connect your self-hosted Directus to UnifiedHow to connect your self-hosted Discourse to UnifiedHow to connect your self-hosted Dolibarr to UnifiedHow to connect your self-hosted DRACOON to UnifiedHow to connect your self-hosted Drupal to UnifiedHow to connect your self-hosted Epicor Kinetic to UnifiedHow to connect your self-hosted ERPNext to UnifiedHow to connect your self-hosted EspoCRM to UnifiedHow to connect your self-hosted eWay-CRM to UnifiedHow to connect your self-hosted Fastmag to UnifiedHow to connect your self-hosted FileRun to UnifiedHow to connect your self-hosted Forem (DEV Community) to UnifiedHow to connect your self-hosted FusionAuth to UnifiedHow to connect your self-hosted Ghost to UnifiedHow to connect your self-hosted Gitea to UnifiedHow to connect your self-hosted GitHub Enterprise Server to UnifiedHow to connect your self-hosted GLPI to UnifiedHow to connect your self-hosted Grafana to UnifiedHow to connect your self-hosted Iceberg Database to UnifiedHow to connect your self-hosted IFS Applications to UnifiedHow to connect your self-hosted Invoice Ninja to UnifiedHow to connect your self-hosted Keycloak to UnifiedHow to connect your self-hosted Kimai to UnifiedHow to connect your self-hosted Lime CRM to UnifiedHow to connect your self-hosted LiteLLM to UnifiedHow to connect your self-hosted Mailcoach to UnifiedHow to connect your self-hosted ManageEngine MDM to UnifiedHow to connect your self-hosted Mattermost to UnifiedHow to connect your self-hosted Metabase to UnifiedHow to connect your self-hosted Microsoft Dynamics GP to UnifiedHow to connect your self-hosted Mijn Bureau to UnifiedHow to connect your self-hosted Mixpost to UnifiedHow to connect your self-hosted Moodle to UnifiedHow to connect your self-hosted Nextcloud to UnifiedHow to connect your self-hosted NocoDB to UnifiedHow to connect your self-hosted ODK Central to UnifiedHow to connect your self-hosted Ollama to UnifiedHow to connect your self-hosted Outline to UnifiedHow to connect your self-hosted Phraseanet to UnifiedHow to connect your self-hosted Planka to UnifiedHow to connect your self-hosted Postal to UnifiedHow to connect your self-hosted PrestaShop to UnifiedHow to connect your self-hosted Pronto Xi to UnifiedHow to connect your self-hosted Pydio Cells to UnifiedHow to connect your self-hosted Redash to UnifiedHow to connect your self-hosted Request Tracker to UnifiedHow to connect your self-hosted Sage 100 (France) to UnifiedHow to connect your self-hosted Sage 300 Construction and Real Estate (Timberline) to UnifiedHow to connect your self-hosted Sage 300 People to UnifiedHow to connect your self-hosted Sage X3 (Sage Enterprise Management) to UnifiedHow to connect your self-hosted Sangoma to UnifiedHow to connect your self-hosted SeaTable to UnifiedHow to connect your self-hosted Shopware to UnifiedHow to connect your self-hosted Snipe-IT to UnifiedHow to connect your self-hosted Symphony Messaging to UnifiedHow to connect your self-hosted Tableau to UnifiedHow to connect your self-hosted TallyPrime to UnifiedHow to connect your self-hosted VICIdial to UnifiedHow to connect your self-hosted Vikunja to UnifiedHow to connect your self-hosted WordPress to UnifiedHow to connect your self-hosted YouTrack to UnifiedHow to connect your self-hosted Zulip to UnifiedHow to Connect Zoom and Zoom PhoneHow to create a Connection In Microsoft TeamsHow to create a token-based connection in HighlevelHow to Create a Unified.to Connection to HighLevelHow to Create a Xero Connection in Unified.toHow to create and configure webhooksHow to create Connection with HubspotHow to customize portal URLs for Stripe and GoCardlessHow to filter webhook eventsHow-to Get a Private Support Channel for Your Unified IntegrationHow to get help from Unified.toHow to get your 7shifts Access Token: Step-by-step guideHow to get your 8x8 Connect API Key, Account ID and SMS Subaccount ID (optional): Step-by-step guideHow to get your ADP Workforce Now Oauth2 client ID, Oauth2 client secret, Oauth2 PEM certificate and Oauth2 private key: Step-by-step guideHow to get your Amazon S3 AWS Region, AWS S3 Key, AWS S3 Secret and AWS S3 Bucket(s) (optional, comma-separated): Step-by-step guideHow to get your Ashby API Key: Step-by-step guideHow to get your Brex API token: Step-by-step guideHow to get your Bullhorn OAuth2 Client ID, OAuth2 Client Secret, API Username and API Password: Step-by-step guideHow to get your Ceridian Dayforce Username, Password and Client Namespace: Step-by-step guideHow to get your ClayHR x-api-key, userid and subdomain: Step-by-step guideHow to get your Crelate API key: Step-by-step guideHow to get your Dashlane API Key: Step-by-step guideHow to get your Deel Access Token: Step-by-step guideHow to get your Dialpad API Key: Step-by-step guideHow to get your Discord OAuth 2 credentials and bot tokenHow to get your ELMO client ID and client secret: Step-by-step guideHow to get your Gainsight Client ID, Client Secret and Gainsight API Domain: Step-by-step guideHow to get your Greenhouse API Key and Job board token: Step-by-step guideHow to get your Helpscout API Key: Step-by-step guideHow to get your HiBob API Key: Step-by-step guideHow to get your HighLevel API Key and Location ID: Step-by-step guideHow to get your HubSpot developer key and OAuth 2 credentials (Legacy Apps)How to get your Humaans API Key: Step-by-step guideHow to get your iCIMS API Username, API Password and Customer ID: Step-by-step guideHow to get your JobDiva Client ID, Username/email and Password: Step-by-step guideHow to get your Jobvite API Key, API Key Secret and Email: Step-by-step guideHow to get your Kixie API Key: Step-by-step guideHow to get your Lever API Key: Step-by-step guideHow to get your Loxo Agency slug, API Key and Agency ID: Step-by-step guideHow to get your Microsoft Active Directory / Entra ID Client ID, Client Secret and Tenant ID: Step-by-step guideHow to get your Microsoft Azure AD OAuth 2 credentialsHow to get your OAuth 2 credentials for GmailHow to get your OAuth 2 credentials for Microsoft Dynamics 365How to get your OAuth 2 credentials in PipeDriveHow to get your OpenAI API Key: Step-by-step guideHow to get your Paycom SID/Username and Token/Password: Step-by-step guideHow to get your PCRecruiter Username, Password, Database ID, App Key and App ID: Step-by-step guideHow to get your SAP SuccessFactors (OpenID Connect) Username, Password, Client ID, Client Secret, Dependency Name, IAS Host and API URL: Step-by-step guideHow to get your SAP SuccessFactors Username, Company ID, Password and API URL: Step-by-step guideHow to get your Shopify Admin API access token and Store ID: Step-by-step guideHow to get your Wayfair Client ID, Client Secret and Vendor Encrypted Key: Step-by-step guideHow to get your Workable API Token and Subdomain: Step-by-step guideHow to get your yotpo APP Key / Store ID and Secret Key: Step-by-step guideHow to Handle Attachments in Invoice, Bill and Credit MemoHow to Manage Google Ad Manager Orders, Line Items and Creatives with the Unified.to Advertising APIHow to migrate or import your integrations into Unified.toHow to obtain your GitHub OAuth2 credentialsHow to Power Claude with Live Customer Data Using Unified MCPHow to receive assessment orders from an ATS with Unified.toHow to register a Google developer app and get OAuth 2 credentialsHow to Register a HiBob Developer App and Get OAUTH2 CredentialsHow to register a Salesforce developer app and get OAuth 2 credentialsHow to register a Slack developer account and get OAuth 2 credentialsHow to Register a Workday Developer App and Get OAUTH2 CredentialsHow to Register a Workday Developer App and Get OAUTH2/ SOAP CredentialsHow to Register a ZendeskSell Developer App and Get OAUTH2 CredentialsHow to Register a Zoho Developer App and Get OAUTH2 CredentialsHow to Register an ADP Developer App and Get OAUTH2 CredentialsHow to Register an Atlassian Developer App and Get OAUTH2 CredentialsHow to Register your Facebook OAuth2 ApplicationHow to Register your Google Ads OAuth2 ApplicationHow to Register your MetaAds OAuth2 applicationHow To Request & Write Raw Integration DataHow to Retrieve Microsoft Dynamics 365 Business Central CredentialsHow to set up a custom API URL with a CNAMEHow to Set Up a Google Meet Meeting Bot with UnifiedHow to set up a HiBob marketplace installHow to Set Up a Microsoft Teams Bot with UnifiedHow to Set Up a Microsoft Teams Meeting Bot with UnifiedHow to Set Up a Webex Meeting Bot with UnifiedHow to Set Up a Zoom Meeting Bot with UnifiedHow to set up and configure NotionHow to set up Google Business Profile API access and get OAuth 2 credentialsHow to Set Up LinkedIn Webhooks with UnifiedHow to set up native webhooks for QuickBooks Online with UnifiedHow to set up Slack webhooks using event subscriptionsHow to set up Telegram (bot) with Unified.toHow to set up your scopes in HubSpotHow to setup a Freshbooks developer appHow to setup a TikTok Shop applicationHow to Setup AWS Assume Role for AWS Secret ManagerHow to setup Oracle JD EdwardsHow to Setup Quickbooks DesktopHow to setup Sage 100 with Unified.toHow to test webhooks in the Synthetic Data (Sandbox) environmentHow to troubleshoot unhealthy connectionsHow to Use Decision Models with the Unified GenAI APIHow to use SCIM with the Unified APIHow to use the Passthrough APIHow to Use Unified.to's Generative AI API with OpenAI and ClaudeHow to use User Provisioning and Verification with UnifiedHow virtual webhook retry and recovery worksIntegration set-up guide for LeverManaging custom validation rules in SalesforceNetSuite Authentication Setup for UnifiedNotice of Deprecation of Fields and Objects (Nov 2025)Oracle HCM / Taleo OAuth Credentials GuideRate limits and retriesRetrieval-Augmented Generation (RAG)SalesForce (External Client Apps) on Multiple OrganizationsSAML Single-Sign-OnScaling MCP Tools with Anthropic's (& OpenAI's) Defer LoadingScaling MCP Tools with Anthropic's Programmatic Tool CallingSet Environments for your Unified.to WorkspaceSetting up a Slack Bot Connection with Unified.toSetting up OAuth 2 Credentials for Greenhouse's APIsTrello Connection Guide in UnifiedUnderstanding OAuth2 Authorization flowsUnderstanding Response Time Headers in the Unified APIUnified Assessment API: Embed Assessments Inside ATS PlatformsUnified's MCP ServerUnified MCP Server with LangChain and LangGraphUnlock real-time data with virtual webhooksUse Unified to sign in your users into your applicationVincere OAuth Setup Guide for UnifiedWhy you can't use Unified's OAuth2 credentials to authorize your end users on ProductionWorkable: Creating candidates and attaching them to jobsWorkday vs Workday Legacy — Why Unified.to Supports BothWorking with custom fieldsWorking with hierarchical tree data in Storage, Messaging, and KMS APIs
Are we missing anything? Let us know
Was this page helpful?