WebhooksAlert events for your own tooling.

ElevenGuard can POST every certificate, TLS and email-security alert as signed JSON to an HTTPS endpoint you control: a ticketing bridge, an automation workflow, a SIEM, your own service, or a Microsoft Teams, Google Chat or Discord channel.

Set up

  1. Go to Dashboard → Integrations → Webhook, enter an https:// URL on a public hostname and click Save.
  2. Copy the signing secret (whsec_...) into your endpoint's configuration.
  3. Click Send test event. Your endpoint should answer with any 2xx status.

Webhooks work on every plan. Free accounts get certificate events and TLS grade drops; Pro and Agency add TLS issue details, TLS improvements and email-security events. Prefer incidents? Use the PagerDuty integration.

Microsoft Teams, Google Chat and Discord

Paste a chat app's incoming webhook URL and ElevenGuard sends a readable message instead of the JSON event: the host or domain, what changed and a link to the details. The format is picked from the URL, so there is nothing else to set.

  • Microsoft Teams: in the channel, open Workflows and add the template that posts to a channel when a webhook request is received. Copy the URL it gives you. Messages arrive as an Adaptive Card. The retired Office 365 connector URLs (webhook.office.com) also work.
  • Google Chat: in the space, open Apps & integrations → Webhooks, add one and copy its URL.
  • Discord: in Server Settings → Integrations → Webhooks, create a webhook for the channel and click Copy Webhook URL. ElevenGuard never pings @everyone or roles.

Chat messages carry the same signature headers, but the body is the chat app's format, not the event JSON below. One webhook URL per account, so use a workflow tool if you need both.

Request format

One POST per alert, Content-Type: application/json, signed according to the Standard Webhooks specification, so its libraries verify ElevenGuard events out of the box.

POST /elevenguard HTTP/1.1
Content-Type: application/json
User-Agent: ElevenGuard-Webhooks/1.0 (+https://www.elevenguard.com/docs/webhooks)
webhook-id: evt_3f1c0a9b2d4e5f60718293a4b5c6d7e8
webhook-timestamp: 1795000000
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=

{
  "id": "evt_3f1c0a9b2d4e5f60718293a4b5c6d7e8",
  "type": "certificate.expiring",
  "timestamp": "2026-12-01T03:00:12.000Z",
  "data": {
    "hostname": "api.example.com",
    "severity": "error",
    "expires_at": "2026-12-07T23:59:59.000Z",
    "days_left": 6,
    "alert": "expires_7d",
    "url": "https://www.elevenguard.com/ssl-check/api.example.com"
  }
}

Event types

typeSent whendata fields
certificate.expiringA certificate crosses the 21-, 7- or 1-day threshold (scaled down for short-lived certificates).hostname, severity, expires_at, days_left, alert (expires_21d | expires_7d | expires_1d), url
certificate.expiredA certificate expired in the last 7 days.same as certificate.expiring, alert = expired
certificate.renewedA host started serving a new certificate.same as certificate.expiring, alert = renewed
tls.grade_droppedThe A–F TLS grade dropped or new TLS issues appeared.hostname, severity, from_grade, to_grade, detected_at, issue_count, issues[] (Pro and Agency: id, severity, title), url
tls.grade_improvedThe TLS grade improved (Pro and Agency).same as tls.grade_dropped; issues[] lists what went away
email_security.changedSPF, DKIM, DMARC or MX changed on a monitored domain, or an issue appeared or went away (Pro and Agency).domain, severity, detected_at, issues_found[], issues_resolved[] (code, severity, text), records[] (record, change, from, to), url
testYou clicked Send test event.message, severity, url

severity is one of critical, error, warning or info, the same scale PagerDuty uses. New fields and event types may be added; ignore what you don't recognise.

Verify the signature

Sign {webhook-id}.{webhook-timestamp}.{raw body} with HMAC-SHA256, keyed with the base64-decoded part of the secret after whsec_, and compare it in constant time with the v1, value in webhook-signature. Reject timestamps more than five minutes old. Use the raw request body, before any JSON parsing.

Node.js

import { createHmac, timingSafeEqual } from "node:crypto";

// secret: the whsec_... value from Dashboard → Integrations → Webhook
export function verify(secret: string, headers: Headers, rawBody: string): boolean {
  const id = headers.get("webhook-id") ?? "";
  const timestamp = headers.get("webhook-timestamp") ?? "";
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false; // replay window

  const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
  const expected = createHmac("sha256", key).update(`${id}.${timestamp}.${rawBody}`).digest();

  return (headers.get("webhook-signature") ?? "").split(" ").some((sig) => {
    const [version, value] = sig.split(",");
    const given = Buffer.from(value ?? "", "base64");
    return version === "v1" && given.length === expected.length && timingSafeEqual(given, expected);
  });
}

Python

import base64, hashlib, hmac, time

def verify(secret: str, headers: dict, raw_body: bytes) -> bool:
    msg_id = headers["webhook-id"]
    timestamp = headers["webhook-timestamp"]
    if abs(time.time() - int(timestamp)) > 300:
        return False
    key = base64.b64decode(secret.removeprefix("whsec_"))
    signed = f"{msg_id}.{timestamp}.".encode() + raw_body
    expected = base64.b64encode(hmac.new(key, signed, hashlib.sha256).digest()).decode()
    return any(
        hmac.compare_digest(sig.split(",", 1)[1], expected)
        for sig in headers["webhook-signature"].split(" ")
        if sig.startswith("v1,")
    )

Delivery

  • Alerts go out once a day, after the daily checks. Expect a burst of events, not a stream.
  • Any 2xx response counts as delivered. Redirects aren't followed, and requests time out after 10 seconds.
  • If a delivery fails, that event and the ones after it are retried on the next daily run, for up to 7 days. The webhook-id stays the same across retries, so use it to drop duplicates.
  • The last delivery result is shown on the Integrations page.
  • Rotate the signing secret from the same page if it leaks. The old secret stops working immediately.

Support

Email support@elevenguard.com.