Zapier - WebHooks

WebHooks are automated messages sent from apps when something happens. They have a message—or payload— and are sent to a unique URL; named WebHook URL. This article will serve to assist with sending WebHook notifications to Zapier, to trigger alerts to other providers.
Before setting up the integration with Zapier, please read over our Alerts article to learn basic concepts and useful tips.
In order to set up WebHook notifications to Zapier, you will need:
  • A paid Zapier plan (Professional, Team, or Enterprise). Webhooks by Zapier is not available on Zapier's Free plan.
  • Admin or super-admin user role within Hudu.

    At any time, you can come back to the Hudu admin area → Alerts → edit specific alert to make changes to the alert.

Enabling alerts

  • Navigate to your Hudu admin area → Alerts.
  • Click + New Alert.
    • Give your alert a name.
    • Select the alert type from the choices and complete the required fields (see Alerts for more information).
      • Record created/updated/deleted alerts are sent by webhook only. To get alerts when processes change, select Processes only or All types of records as the record type. Process runs don't trigger this alert.
    • Under Configure Webhook, enter the WebHook URL from Zapier (see Obtaining the Zapier WebHook URL below).
    • Enter your payload in the Webhook payload field. The payload must be valid JSON. Visit Understanding WebHooks for the variables available for each alert type.
  • Click Create Alert to save.

Obtaining the Zapier WebHook URL

   The steps below use Zapier's Classic Zap editor. Zapier also offers Next Gen Zaps, which can be built by describing a workflow to an AI tool or in Zapier's Workflow Manager, and can be started by a webhook. Visit What is a Next Gen Zap? for additional information.

  • Log in to your Zapier account and click + Create Zap.

My_Apps___Zapier.png

  • Click the Trigger step, then search for and select Webhooks by Zapier.
  • Select Catch Hook from the dropdown list for the Event field.

Untitled_Zap___Zapier.png

  • Click Continue. Leave Pick off a child key blank and click Continue again.
  • In the Test tab, click Copy to copy the generated WebHook URL, then paste it exactly into the Webhook URL field of your Hudu alert.
  • Enter a WebHook payload in Hudu to create a Zapier request.
  • Save the alert in Hudu.
    The WebHook URL is tied to the Zap's owner. If the Zap is transferred to another Zapier user, the URL changes, and you'll need to update it in your Hudu alert.

Testing WebHooks

  • Navigate to your Hudu admin area → Alerts and find your created alert from the list.
  • Click on Test WebHook.

   We are only testing your connection and payload, not your variables; sample variables will be filled in. Radar alerts are the exception (v2.50.2): Test WebHook sends the preconfigured Radar payload and shows whether it was sent, blocked because the URL is a private or internal address, or returned an HTTP status code from the endpoint.

Alerts_-_HUDU.png

  • Once a WebHook alert to Zapier has been tested on the Hudu side, click Test trigger in Zapier to pull up your WebHook request (if it was successful).

Zapier actions

Once a WebHook Zap has been successfully sent and tested within Zapier, you'll need to assign an action to the Zap, then click Publish to turn it on. Zapier only accepts alerts from Hudu while the Zap is published and turned on.

    Visit Set up your Classic Zap action for additional information on configuring Zap actions.

Sending Hudu Radar alerts to Zapier

Hudu Radar alerts send a preconfigured payload that cannot be customized, and most providers, including Slack, Microsoft Teams, and Discord, will reject it if it's sent to them directly. Zapier can receive the Radar payload and reformat it into a message your destination service accepts.

  • Create a Catch Hook Zap and copy the WebHook URL, as described above.
  • In the Hudu admin area → Alerts, create or edit a Radar alert and enter the Zapier URL in Webhook URL. The Radar payload is preconfigured, so there's no payload to enter.
    • If a warning appears under Webhook URL, the URL can't receive Radar webhooks. The alert still saves and email notifications still send, but confirm the Zapier URL was copied exactly.
  • In your Zap's action step, map the preconfigured Radar payload fields listed below into the message for your destination service.
  • Click Test WebHook on the Radar alert in Hudu, then click Test trigger in Zapier to pull in the Radar payload fields for mapping.

   Hudu webhook variables, such as $HUDU_URL, are not supported for Radar alerts. Radar alerts always send the preconfigured fields below.

Preconfigured Radar payload fields

Radar device offline
  • event_type = Radar alert type
  • deployment_name = Deployment name
  • company_name = Company name
  • occurred_at = When the alert fired (UTC)
  • device.id = Device ID
  • device.name = Device name
  • device.ip_address = Device IP
  • device.device_type = Device type
  • device.is_up = Up status
  • device.last_agent_check_in_time = Last agent check-in (if present)
  • device.network_cidr_address = Network CIDR
  • device.hudu_asset_url = Linked Hudu asset URL (if present)
Radar new device
  • event_type = Radar alert type
  • deployment_name = Deployment name
  • company_name = Company name
  • occurred_at = When the alert fired (UTC)
  • device.id = Device ID
  • device.name = Device name
  • device.ip_address = Device IP
  • device.device_type = Device type
  • device.is_up = Up status
  • device.last_agent_check_in_time = Last agent check-in (if present)
  • device.network_cidr_address = Network CIDR
  • device.hudu_asset_url = Linked Hudu asset URL (if present)
Radar agent check-in
  • event_type = Radar alert type
  • deployment_name = Deployment name
  • company_name = Company name
  • occurred_at = When the alert fired (UTC)
  • device.id = Device ID
  • device.name = Device name
  • device.ip_address = Device IP
  • device.device_type = Device type
  • device.is_up = Up status
  • device.last_agent_check_in_time = Last agent check-in (if present)
  • device.network_cidr_address = Network CIDR
  • device.hudu_asset_url = Linked Hudu asset URL (if present)
Radar scan overdue
  • event_type = Radar alert type
  • deployment_name = Deployment name
  • company_name = Company name
  • occurred_at = When the alert fired (UTC)
  • scan.id = Scan ID
  • scan.status = Scan status
  • scan.started_at = When the scan started
  • scan.ended_at = When the scan ended (if present)
  • scan.network_cidr_address = Network CIDR (if present)
Radar scan failed
  • event_type = Radar alert type
  • deployment_name = Deployment name
  • company_name = Company name
  • occurred_at = When the alert fired (UTC)
  • scan.id = Scan ID
  • scan.status = Scan status
  • scan.started_at = When the scan started
  • scan.ended_at = When the scan ended (if present)
  • scan.network_cidr_address = Network CIDR (if present)

    Visit Hudu Radar Alerts for additional information on Radar alert types and settings.

Alternative guides

The guides below will serve to assist with setting up WebHook notifications to alternative common providers.

slacklogo.png

Slack

teamslogo.png

Microsoft Teams

discordlogo.png

Discord

genericwebhook.png

Generic Provider

Was this article helpful?
0 out of 0 found this helpful