Skip to main content

Webhook Integration

Send JSON:API alert, scheduled test, aggregate alert, and incident payloads to custom HTTP/HTTPS webhook endpoints with pre-save verification.

Written by Panickos Neophytou

Webhook Integration delivers structured JSON:API HTTP POST notifications for NetBeez alerts, Scheduled Test Alerts, aggregate alert batches, and Incidents to any custom HTTP or HTTPS receiver—making it straightforward to integrate NetBeez with SOAR platforms, custom ticketing middleware, event brokers, or serverless automation.

In this article:

Configuring & Testing a Webhook Endpoint

Users with the Administrator role can configure outbound webhooks under Settings:

  1. Click Settings in the left navigation sidebar, expand Integrations & Notifications, and select Webhook (/settings/integrations/webhook).

  2. In the Webhook Configuration card, enter your receiver endpoint in Webhook URL (required; must begin with http:// or https://). When https:// is used, NetBeez verifies the server's TLS certificate.

  3. Click Test to verify reachability before clicking Apply Changes. NetBeez validates the unsaved URL in memory and sends an HTTP POST request (Content-Type: application/json) with the verification payload:

    {
      "test": "Test from the NetBeez Webhook integration"
    }
  4. Confirm your endpoint returns a 2xx HTTP response and the Webhook Test Succeeded toast banner (Test webhook sent successfully.) appears. If the endpoint returns a non-2xx status or times out, Webhook Test Failed displays the exact failure detail.

  5. Click Apply Changes to save the webhook URL.

Settings Integrations & Notifications Webhook page showing Webhook URL input, Test and Apply Changes buttons, and four-column Notifications card

Enabling Notifications & Timeout Behavior

  1. In the Notifications card, switch the top-right toggle to Enabled.

  2. Enable the desired event toggles across the four entity columns and click Save:

HTTP Delivery & Timeout Contract:

  • Method & Content Type: Every notification is sent as an HTTP POST with Content-Type: application/json.

  • Timeouts: NetBeez enforces a 5-second connection open timeout and a 10-second read timeout. Webhook receivers should return a 2xx HTTP status promptly and perform downstream processing asynchronously.

  • Asynchronous Dispatch & Maintenance Mode: Events are delivered asynchronously on the background notifications queue and are suppressed automatically while Maintenance Mode is active under Settings → Information & Health.

Alert & Aggregate Alert JSON Payloads

Single alerts wrap one resource object in data ("type": "alert"), while aggregate alerts wrap an array of "alert" resource objects in data and append aggregation_entity_type and test_counts to each item:

JSON Path

Description

data.id / data.type

Alert event UUID and literal string "alert".

attributes.severity & severity_name

Numeric severity (0–7, such as 1 for Critical, 4 for Warning, 6 for Cleared) and its label (emergency, alert, critical, error, warning, notice, informational, debug).

attributes.alert_dedup_id

UUID of the opening alert event. Remains identical between ALERT_OPEN and the corresponding ALERT_CLEARED event for correlation.

attributes.event_type

"ALERT_OPEN" (severity <= 5) or "ALERT_CLEARED" (severity 6).

attributes.agent & agent_description

Source agent display name and optional description (omitted when blank).

attributes.target & destination

Target or Scheduled Test template display name and tested endpoint/hostname (included on test alerts; omitted on Agent Device Alerts).

attributes.wifi_profile

Wi-Fi Profile display name (included when the alert is associated with a Wi-Fi Profile).

attributes.test_type

"PingTest", "DnsTest", "HttpTest", "TracerouteTest", "PathAnalysisTest", "IperfTest", "SpeedtestTest", "VoipTest", "CustomCommandTest", "PacketCaptureTest", or null for Agent Device Alerts.

attributes.message & alert_ts

Human-readable alert condition summary and event timestamp in epoch milliseconds.

attributes.aggregation_entity_type

Included on Aggregate Alerts only: "agent", "target", "wifi_profile", or "scheduled_test".

attributes.test_counts

Included on Aggregate Alerts only: per-test-type running test status counts on the aggregated entity ({} when not applicable, such as Scheduled Tests).

Example: Single Scheduled Test Alert Payload

{
  "data": {
    "id": "4e1c2b3a-8d9f-4123-9abc-0123456789ab",
    "type": "alert",
    "attributes": {
      "severity": 4,
      "severity_name": "warning",
      "alert_dedup_id": "4e1c2b3a-8d9f-4123-9abc-0123456789ab",
      "event_type": "ALERT_OPEN",
      "agent": "Branch Office - NYC",
      "target": "Hourly WAN Speedtest",
      "destination": "CloudFlare",
      "message": "NETWORK SPEED: Download mean over 3 runs was below 100 Mbps",
      "test_type": "SpeedtestTest",
      "alert_ts": 1763906400000
    }
  }
}

Example: Aggregate Alerts Payload

{
  "data": [
    {
      "id": "7a6b5c4d-3e2f-4987-8abc-fedcba987654",
      "type": "alert",
      "attributes": {
        "severity": 1,
        "severity_name": "alert",
        "alert_dedup_id": "7a6b5c4d-3e2f-4987-8abc-fedcba987654",
        "event_type": "ALERT_OPEN",
        "agent": "Pittsburgh HQ",
        "target": "Internal Portal",
        "destination": "https://portal.example.com",
        "message": "5 consecutive HTTP checks failed",
        "test_type": "HttpTest",
        "aggregation_entity_type": "target",
        "test_counts": {
          "3": { "success": 2, "warning": 0, "fail": 8 }
        },
        "alert_ts": 1763906460000
      }
    }
  ]
}

Incident JSON Payload

Incident notifications serialize as "type": "incident" with event set to "INCIDENT_OPEN" or "INCIDENT_CLEARED", a persistent incident_id matching the opening event UUID, entity-specific identifier fields (agent / agent_id, target / target_id, or wifi_profile / wifi_profile_id), a dashboard url, event_ts (transition timestamp in epoch ms), and incident_ts (original incident open timestamp in epoch ms):

{
  "data": {
    "id": "b1c2d3e4-f5a6-4789-8901-234567890abc",
    "type": "incident",
    "attributes": {
      "incident_id": "b1c2d3e4-f5a6-4789-8901-234567890abc",
      "event": "INCIDENT_OPEN",
      "event_ts": 1763906520000,
      "target": "Internal Portal",
      "target_id": "11223344-5566-4777-8888-99aabbccdde0",
      "url": "https://netbeez.example.com/targets/11223344-5566-4777-8888-99aabbccdde0",
      "message": "Incident opened on Internal Portal",
      "incident_ts": 1763906520000
    }
  }
}
Did this answer your question?