Site sections

Webhook for your own systems

How to receive Pingovator events in your own software: request format, signature check, retries and secret rotation.

A webhook means Pingovator sends a request to your address on every event. Use it to pass outages to your ticket system, bot, CRM or a script that restarts something.

Connecting

  1. In Notifications, choose the “Webhook” channel type.
  2. Enter an address that accepts POST requests. Only https:// addresses work.
  3. Click “Add channel”. Pingovator shows the signing secret — copy it right away, it is shown only once.
  4. Click “Send test”. If your address replied with a 2xx code, the channel is verified.

What arrives

A POST request with a JSON body:

{
  "schema_version": 1,
  "delivery_id": "01JD…",
  "event_id": "01JD…",
  "event_code": "availability.down",
  "phase": "problem",
  "reminder": 0,
  "severity": "critical",
  "occurred_at": "2026-11-25T10:15:00+00:00",
  "subject": "Pingovator: outage confirmed — Main website",
  "body": "Monitor “Main website” is unavailable…",
  "data": {
    "monitor_name": "Main website",
    "monitor_target": "https://example.com",
    "error_code": "timeout"
  }
}
FieldMeaning
event_codeEvent code, such as availability.down, tls.expiring, availability.recovered
phaseproblem, recovery, or test for a test message
reminder0 — the first message, 1, 2… — the reminder number for the same outage
severitycritical — outage, warning — warning, info — test
subject, bodyReady-made text in the channel’s language
dataEvent details: monitor, address, error code and more

Headers

HeaderContents
X-Pingovator-DeliveryDelivery ID
X-Pingovator-TimestampSending time, Unix time in seconds
X-Pingovator-SignatureSignature as v1=…
Idempotency-KeySame as the delivery ID

Checking the signature

The signature proves that the request came from Pingovator and nobody changed it on the way.

  1. Take the time from X-Pingovator-Timestamp and the raw request body — exactly the bytes that arrived.
  2. Compute HMAC-SHA256 of the string time.body with your secret.
  3. Compare the result with the signature after v1=.
  4. Reject requests whose time differs from now by more than 5 minutes, so an old intercepted request cannot be replayed.

PHP example:

$body = file_get_contents('php://input');
$timestamp = $_SERVER['HTTP_X_PINGOVATOR_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_PINGOVATOR_SIGNATURE'] ?? '';
$expected = 'v1=' . hash_hmac('sha256', $timestamp . '.' . $body, getenv('PINGOVATOR_SECRET'));

if (! hash_equals($expected, $signature) || abs(time() - (int) $timestamp) > 300) {
    http_response_code(401);
    exit;
}

Node.js example:

const crypto = require('crypto');
const expected = 'v1=' + crypto.createHmac('sha256', process.env.PINGOVATOR_SECRET)
  .update(timestamp + '.' + rawBody).digest('hex');
const valid = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));

Response and retries

  • Reply with 2xx as soon as you have accepted the request. Do long processing after replying.
  • If the address does not answer or replies 408, 425, 429 or 5xx, Pingovator retries: up to 5 attempts in total, with pauses of 1, 5 and 15 minutes and 1 hour.
  • Other 4xx replies are a final refusal: no retries.
  • On a retry, delivery_id and Idempotency-Key stay the same. If a request with this ID was already processed, just reply 2xx — so you don’t handle the event twice.

Rotating the secret

If the secret may have leaked, click “Rotate signing secret” on the channel card. The new secret is shown once, and the old one stops working immediately — prepare your system for the switch beforehand.

Limits

  • https:// only. Internal network and local addresses are not accepted.
  • Requests are sent from Pingovator’s central server, not from check locations.

Updated December 2, 2026

Didn’t find the answer? Write to us — we will help and add it to the help.

Contact us