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
- In Notifications, choose the “Webhook” channel type.
- Enter an address that accepts POST requests. Only
https://addresses work. - Click “Add channel”. Pingovator shows the signing secret — copy it right away, it is shown only once.
- 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"
}
}| Field | Meaning |
|---|---|
event_code | Event code, such as availability.down, tls.expiring, availability.recovered |
phase | problem, recovery, or test for a test message |
reminder | 0 — the first message, 1, 2… — the reminder number for the same outage |
severity | critical — outage, warning — warning, info — test |
subject, body | Ready-made text in the channel’s language |
data | Event details: monitor, address, error code and more |
Headers
| Header | Contents |
|---|---|
X-Pingovator-Delivery | Delivery ID |
X-Pingovator-Timestamp | Sending time, Unix time in seconds |
X-Pingovator-Signature | Signature as v1=… |
Idempotency-Key | Same as the delivery ID |
Checking the signature
The signature proves that the request came from Pingovator and nobody changed it on the way.
- Take the time from
X-Pingovator-Timestampand the raw request body — exactly the bytes that arrived. - Compute HMAC-SHA256 of the string
time.bodywith your secret. - Compare the result with the signature after
v1=. - 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_idandIdempotency-Keystay 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