Skip to content

Webhook Notifications

PingRoot can send a POST request to one or more URLs when a monitor goes down or recovers. Webhooks are available on Pro and Team plans.

Supported integrations: Slack, Discord, and any custom HTTP endpoint (Generic POST).


  1. Open the dashboard and click the webhook icon on any monitor card.
  2. Click “Add webhook”.
  3. Choose an integration type: Slack, Discord, or Generic POST.
  4. Enter a name and the destination URL.
  5. Save. PingRoot stores the endpoint and begins delivering events immediately.

You can add multiple webhooks per monitor, up to the limit for your plan (Pro: 5, Team: unlimited).


Paste a Slack Incoming Webhook URL. PingRoot sends a one-line message with the status, the monitor URL, and the error, if any.

Paste a Discord webhook URL. PingRoot sends a one-line message with the status, the monitor URL, and the error, if any.

Any HTTP endpoint that accepts a JSON body. PingRoot sends a signed POST request with the payload below.


{
"event": "monitor.down",
"timestamp": "2024-01-15T14:32:07.000Z",
"monitor": {
"id": "3f2b8c1e-0a4d-4f6e-9b7a-2c1d5e8f9a0b",
"name": "Production API",
"url": "https://api.example.com/health"
},
"incident": {
"statusCode": null,
"responseTime": null,
"errorMessage": "eu-west: Expected 200, got 503; us-east: Expected 200, got 503",
"region": "auto"
}
}

For recovery events, "event" is "monitor.up" and "incident" is null. A monitor without a name sends its URL as "name".


Every Generic POST request includes an X-PingRoot-Signature header containing an HMAC-SHA256 signature of the raw request body, signed with your webhook’s secret key.

The header value is prefixed with sha256= — for example: sha256=abc123...

To verify the signature, use the raw request body string before any JSON parsing:

import { createHmac, timingSafeEqual } from "crypto";
function verifySignature(rawBody, signatureHeader, secret) {
const expected = "sha256=" + createHmac("sha256", secret)
.update(rawBody)
.digest("hex");
return timingSafeEqual(Buffer.from(signatureHeader), Buffer.from(expected));
}

You can view or rotate the secret key for each webhook endpoint from the webhook panel in the dashboard.


  • Webhooks are delivered asynchronously — there is no in-line delay to your monitors.
  • PingRoot makes up to 6 attempts per event. Deliveries are sent once a minute, so a failed attempt is retried about a minute later.
  • A delivery is considered successful when the destination returns any 2xx status code.
  • After 6 failed attempts, the event is marked as failed and no further retries occur.
  • An attempt interrupted on PingRoot’s side (a deployment, for example) is retried about 5 minutes later and counts as one of the 6 attempts. It is marked as failed instead if a newer event for the same webhook is already queued.
  • Delivery is at least once: an event can occasionally arrive twice. A retry sends the exact same body, so deduplicate on monitor.id, event and timestamp.
  • Pausing a monitor cancels its deliveries that are not sent yet, retries included. An attempt already under way when you pause still completes.

Click the logs icon next to any webhook endpoint to view the delivery log for that endpoint.

Each log entry shows:

  • Event type (down / up)
  • HTTP status code returned by your endpoint
  • Delivery timestamp
  • Error message if the delivery failed

Use delivery logs to debug connection issues or verify that events are being received correctly.