Skip to content

Webhooks: setup, signature and payloads

A Webhook channel sends every alert of your project to your own service, as an HTTP POST request carrying a signed JSON body. It is the channel to pick to plug Quiet Guard into an in-house tool, an on-call manager or an automation. For Slack, Discord and Microsoft Teams, use the dedicated channel type instead, which formats the message for them (see Alerting).

This page covers everything needed to receive one: how to set it up, what the request contains, how to verify its signature, and the exact JSON of every event.

Setting up a webhook

You need a public HTTPS URL that accepts a POST and answers with a 2xx status. Webhook channels are part of the paid plans (Solo, Indie and Studio).

  1. Open the project in the /app panel, then the Alerts tab.
  2. Click Add a channel.
  3. Give it a Name (it comes back in the channel field of the test delivery), choose the Generic webhook Type and paste your address into Webhook URL.
  4. Tick the Events to receive. All of them are ticked by default.
  5. Save, then reopen the channel from its row menu (Edit): the Signing secret field appears, read-only, with a button to copy it. Store it server-side, next to your receiving code. Each channel has its own secret; to get a different one, delete the channel and create it again.
  6. Click Send test on the channel's row. Your endpoint receives the test event, signed like the others. A green notification confirms the delivery, a red one says the target did not answer with a 2xx.

The Enabled switch turns the channel off without losing its secret or its subscriptions.

What your endpoint receives

ItemValue
MethodPOST
Content-Typeapplication/json
Acceptapplication/json
X-Quiet-Guard-Timestampthe time of sending, in Unix seconds
X-Quiet-Guard-Signaturesha256= followed by the signature, see below
Bodya JSON object encoded in UTF-8, slashes not escaped

Three fields are common to every payload:

FieldTypeContent
eventstringthe event key, for example issue.created; it tells you how to read the rest
projectstringthe name of the project the channel belongs to
urlstringthe link to the dashboard page showing the alert; absent from the test event

Every date is ISO 8601 with its offset (2026-11-20T09:14:03+00:00). A field marked "or null" below can be null; every other field is always present and never null. Ignore fields you do not know: a field may be added, and none changes meaning without this page saying so.

Delivery, timeout and failures

  • A single attempt. The request is sent once, with a 5 second timeout. A 2xx status counts as received. Any other status, a network error or a timeout is a failure, which is not retried later. Answer quickly and process the alert in the background if you have work to do.
  • No redirect followed. The request stops at the first response: configure the final address, not one that redirects.
  • Public addresses only. The form refuses a private, loopback or internal URL, and the address is checked again on every delivery: a name that now points at a private address is not called. The connection goes to the vetted address, so a DNS record changed in between cannot divert it.
  • A failing channel does not block the others, and the Last notified column of the Alerts tab only moves on a successful delivery.
  • Storm protection. Past the channel's budget (10 alerts per 10 minutes by default), the following alerts are held back and the channel receives a single alerts.suppressed event per window.
  • Plan. If the team goes back to Free, the channel is kept but stops sending until a paid plan carries it again.

Verifying the signature

The signature is an HMAC SHA-256, computed with the channel's secret, over the timestamp, a dot, then the raw body of the request:

X-Quiet-Guard-Signature: sha256=hex(HMAC-SHA256(secret, timestamp + "." + body))

Recompute it over the bytes received, before decoding the JSON (JSON decoded then encoded again no longer has the same bytes), compare in constant time, and refuse a timestamp more than 5 minutes away from your clock: a captured request then cannot be replayed later.

In PHP, without a framework:

$secret = getenv('QUIET_GUARD_WEBHOOK_SECRET');
$body = file_get_contents('php://input');
$timestamp = $_SERVER['HTTP_X_QUIET_GUARD_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_QUIET_GUARD_SIGNATURE'] ?? '';

$expected = 'sha256='.hash_hmac('sha256', $timestamp.'.'.$body, $secret);

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

$alert = json_decode($body, true);

With Laravel, $request->getContent() gives the raw body and $request->header('X-Quiet-Guard-Signature') the header.

In Node, with Express (the body must stay raw on this route):

import crypto from 'node:crypto';
import express from 'express';

const app = express();

app.post('/quiet-guard', express.raw({ type: 'application/json' }), (req, res) => {
  const timestamp = req.get('X-Quiet-Guard-Timestamp') ?? '';
  const signature = req.get('X-Quiet-Guard-Signature') ?? '';
  const expected = 'sha256=' + crypto
    .createHmac('sha256', process.env.QUIET_GUARD_WEBHOOK_SECRET)
    .update(timestamp + '.')
    .update(req.body)
    .digest('hex');

  const fresh = /^\d+$/.test(timestamp) && Math.abs(Date.now() / 1000 - Number(timestamp)) <= 300;
  const valid = signature.length === expected.length
    && crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));

  if (!fresh || !valid) {
    return res.sendStatus(401);
  }

  const alert = JSON.parse(req.body.toString('utf8'));
  res.sendStatus(204);
});

Slack, Discord and Teams channels are not signed: those services authenticate their webhook URL themselves, and it is secret.

Payloads by event

Each example below is the JSON actually sent, values aside. Keys and their types are checked against the code on every change to the product.

test

Sent by the Send test button. It carries no url: channel is the channel's name and message a fixed sentence, in English.

{
    "event": "test",
    "project": "Shop API",
    "channel": "Ops webhook",
    "message": "This is a test alert from Quiet Guard."
}

issue.created

An issue was seen for the first time (see Exception tracking).

{
    "event": "issue.created",
    "project": "Shop API",
    "issue": {
        "id": "01jd8x2m4q7v3k9t6b1n5r0wce",
        "exception_class": "Illuminate\\Database\\QueryException",
        "message": "SQLSTATE[40001]: Serialization failure: 1213 Deadlock found",
        "file": "app/Http/Controllers/OrderController.php",
        "line": 42,
        "status": "open",
        "times_seen": 1
    },
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/issues/01jd8x2m4q7v3k9t6b1n5r0wce"
}
  • issue.id is the issue's identifier, the one in its dashboard address.
  • issue.message is the exception message. For a team whose encrypted storage is active, it is replaced by a sentence saying the content is encrypted: sealed content never leaves the server in an alert.
  • issue.file and issue.line: or null when the exception carried none.
  • issue.status is open, resolved or ignored.
  • issue.times_seen is the number of occurrences counted at sending.

issue.reopened

A resolved issue came back (a regression). Same shape as issue.created.

{
    "event": "issue.reopened",
    "project": "Shop API",
    "issue": {
        "id": "01jd8x2m4q7v3k9t6b1n5r0wce",
        "exception_class": "Illuminate\\Database\\QueryException",
        "message": "SQLSTATE[40001]: Serialization failure: 1213 Deadlock found",
        "file": "app/Http/Controllers/OrderController.php",
        "line": 42,
        "status": "open",
        "times_seen": 58
    },
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/issues/01jd8x2m4q7v3k9t6b1n5r0wce"
}

issue.snooze_ended

A snoozed issue wakes up (see Snooze). The message is never included: issue.message is always null.

{
    "event": "issue.snooze_ended",
    "project": "Shop API",
    "issue": {
        "id": "01jd8x2m4q7v3k9t6b1n5r0wce",
        "exception_class": "Illuminate\\Database\\QueryException",
        "message": null,
        "file": "app/Http/Controllers/OrderController.php",
        "line": 42,
        "status": "open",
        "times_seen": 70
    },
    "snooze": {
        "reason": "burst",
        "occurrences": 12,
        "snoozed_at": "2026-11-19T08:30:00+00:00",
        "snoozed_by": "Camille Martin"
    },
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/issues/01jd8x2m4q7v3k9t6b1n5r0wce"
}
  • snooze.reason is expired (the deadline passed) or burst (the issue spiked before the deadline).
  • snooze.occurrences is the number of occurrences during the snooze, possibly 0.
  • snooze.snoozed_by is the name of the person who snoozed it, or null if their account no longer exists.

vulnerability.detected

A dependency scan found new vulnerabilities (see Dependency security). One delivery per scan, with every new finding.

{
    "event": "vulnerability.detected",
    "project": "Shop API",
    "count": 1,
    "findings": [
        {
            "package": "guzzlehttp/guzzle",
            "installed_version": "7.4.4",
            "advisory_id": "GHSA-f2wf-25xc-69c9",
            "severity": "high",
            "title": "Change in port should be considered a change in origin",
            "link": "https://github.com/advisories/GHSA-f2wf-25xc-69c9"
        }
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/vulnerabilities"
}
  • count is the number of items in findings.
  • findings[].severity is low, medium, high, critical or unknown.
  • findings[].link: or null when the advisory gives none. It is the advisory's address at its publisher, not a Quiet Guard page.

heartbeat.overdue

A scheduled task stopped pinging (see Heartbeats). One alert per outage.

{
    "event": "heartbeat.overdue",
    "project": "Shop API",
    "heartbeat": {
        "name": "Nightly invoices",
        "slug": "nightly-invoices",
        "expected_period_minutes": 1440,
        "last_ping_at": "2026-11-19T02:00:04+00:00"
    },
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/heartbeats"
}
  • heartbeat.last_ping_at: or null for an armed heartbeat that never pinged.

uptime.down

The monitored URL stopped answering (see Uptime monitoring).

{
    "event": "uptime.down",
    "project": "Shop API",
    "check_url": "https://shop.example.com/up",
    "down_since": "2026-11-20T09:14:03+00:00",
    "cause": "http_503",
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}
  • cause is a stable code: tls, dns, timeout, refused, network, or http_ followed by the status received (http_503). Or null if no cause was recorded.

uptime.recovered

The monitored URL answers again. down_since and cause are then null.

{
    "event": "uptime.recovered",
    "project": "Shop API",
    "check_url": "https://shop.example.com/up",
    "down_since": null,
    "cause": null,
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}

ssl.expiring

The TLS certificate of the monitored URL expires soon: one delivery at 14 days, another at 3 days.

{
    "event": "ssl.expiring",
    "project": "Shop API",
    "check_url": "https://shop.example.com/up",
    "days_left": 14,
    "expires_at": "2026-12-04T23:59:59+00:00",
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}

domain.expiring

The domain registration nears its expiry (see Domains and DNS). The five domain events carry domain and domain_url, the domain's page; project and url stay those of the channel's project. A domain linked to no project only warns in the bell and by email to the team's owners, never by webhook.

{
    "event": "domain.expiring",
    "project": "Shop API",
    "domain": "example.com",
    "domain_url": "https://quietguard.dev/app/acme-k3p9xq/domains/example.com",
    "days_left": 30,
    "expires_at": "2026-12-20T00:00:00+00:00",
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}

domain.protection_removed

A domain lock was lifted or DNSSEC turned off (see Protection removed).

{
    "event": "domain.protection_removed",
    "project": "Shop API",
    "host": "shop.example.com",
    "domain": "example.com",
    "domain_url": "https://quietguard.dev/app/acme-k3p9xq/domains/example.com",
    "details": [
        "client_transfer_prohibited",
        "dnssec"
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}
  • details lists what disappeared: client_transfer_prohibited, client_update_prohibited, client_delete_prohibited, server_transfer_prohibited, server_update_prohibited, server_delete_prohibited, and dnssec.
  • host is the host of the project's monitored URL, or the domain name when the project has none.

mail.auth_degraded

The domain's mail authentication went backwards (see Mail authentication).

{
    "event": "mail.auth_degraded",
    "project": "Shop API",
    "domain": "example.com",
    "domain_url": "https://quietguard.dev/app/acme-k3p9xq/domains/example.com",
    "regressions": [
        "dmarc_weakened",
        "dkim_removed:google"
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}
  • regressions takes its values among spf_removed, spf_open, spf_over_limit, spf_multiple, spf_broken, dmarc_removed, dmarc_weakened, dmarc_multiple, and dkim_removed: followed by the selector.

dns.changed

The zone of a followed host changed (see DNS zone changes).

{
    "event": "dns.changed",
    "project": "Shop API",
    "host": "shop.example.com",
    "domain": "example.com",
    "domain_url": "https://quietguard.dev/app/acme-k3p9xq/domains/example.com",
    "changed": [
        "A"
    ],
    "previous": {
        "A": [
            "203.0.113.10"
        ],
        "MX": [
            "10 mx1.example.com"
        ]
    },
    "current": {
        "A": [
            "198.51.100.7"
        ],
        "MX": [
            "10 mx1.example.com"
        ]
    },
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}
  • changed lists the record types that moved.
  • previous and current map each type read (A, AAAA, CNAME, MX, NS, TXT) to the list of its values; a type absent from the zone does not appear.

ssl.mismatch

The certificate served does not cover the host of the monitored URL. details lists the names the certificate covers.

{
    "event": "ssl.mismatch",
    "project": "Shop API",
    "host": "shop.example.com",
    "details": [
        "example.org",
        "*.example.org"
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}

https.not_enforced

http:// answers in plain text instead of redirecting to HTTPS. details holds what used to protect the host: enforced (a redirect) or closed (port 80 closed).

{
    "event": "https.not_enforced",
    "project": "Shop API",
    "host": "shop.example.com",
    "details": [
        "enforced"
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}

headers.removed

A security header the site used to send is no longer sent. details lists the headers gone, in lowercase: strict-transport-security, content-security-policy, x-frame-options, x-content-type-options, referrer-policy, permissions-policy.

{
    "event": "headers.removed",
    "project": "Shop API",
    "host": "shop.example.com",
    "details": [
        "strict-transport-security",
        "content-security-policy"
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}

ssl.caa_mismatch

The domain's CAA no longer allows the authority that issued the certificate served (see CAA). Here details is an object, not a list.

{
    "event": "ssl.caa_mismatch",
    "project": "Shop API",
    "host": "shop.example.com",
    "details": {
        "issuer": "Sectigo Limited",
        "allowed": [
            "letsencrypt.org"
        ]
    },
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api"
}
  • details.issuer is the certificate's issuer, details.allowed the authorities the CAA names, twenty at most.

exposure.detected

A sensitive path answers publicly on the monitored site (see Exposed files). The file's content is never included.

{
    "event": "exposure.detected",
    "project": "Shop API",
    "exposures": [
        {
            "check": "env",
            "path": "/.env",
            "severity": "critical"
        }
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/vulnerabilities"
}
  • exposures[].check is env, git, ignition, laravel_log, debugbar, telescope, horizon, phpinfo, installed or debug; path is the path that answered; severity is critical, high or medium.

performance.degraded

The hourly pass of performance monitoring opened one or more problems. A single alert per pass, never the text of a SQL query.

{
    "event": "performance.degraded",
    "project": "Shop API",
    "detections": [
        {
            "detector": "slow_route",
            "label": "GET reports.show",
            "environment": "production",
            "details": {
                "slow": 12,
                "total": 102,
                "threshold": 1000
            }
        },
        {
            "detector": "n_plus_one",
            "label": "GET posts.index",
            "environment": "production",
            "details": {
                "requests": 4
            }
        },
        {
            "detector": "slow_query",
            "label": "GET reports.show",
            "environment": "production",
            "details": {
                "slow": 5
            }
        },
        {
            "detector": "failing_host",
            "label": "api.stripe.com",
            "environment": "production",
            "details": {
                "failed": 9,
                "total": 40
            }
        }
    ],
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/performance"
}

detections[].details depends on detector (every value is an integer):

detectorlabeldetails
slow_routethe method and the routeslow calls past the threshold, out of total, threshold in milliseconds
n_plus_onethe originating route or jobrequests: the requests that showed an N+1
slow_querythe route or job that ran it most oftenslow: the slow executions
failing_hostthe host calledfailed calls, out of total

alerts.suppressed

The channel's storm budget is spent: the following alerts of the window are not sent, and this one is sent once. window_minutes is the length of the window.

{
    "event": "alerts.suppressed",
    "project": "Shop API",
    "window_minutes": 10,
    "url": "https://quietguard.dev/app/acme-k3p9xq/projects/shop-api/issues"
}

You are reading the Quiet Guard v1.0 documentation.