Menu

Site navigation

LivePulser
Browse the docs

Webhooks

Send signed JSON alerts to your own endpoint.

A webhook sends each LivePulser alert to a URL you run, as a JSON POST. Every request is signed with a secret that only you and LivePulser know, so your endpoint can check that it really came from us. Use it to open tickets, trigger runbooks or feed alerts into your own tools.

Plans

FeatureFreeStarter, Team, Pro
Webhooks (signed JSON)Yes, within your integrations limitYes, within your integrations limit
Custom request headers, such as AuthorizationNoYes, up to 5
Regenerate the signing secretNo (disconnect and add the webhook again)Yes

If a team moves to Free while a webhook has custom headers, that webhook is paused: its alerts are skipped rather than sent without the headers your endpoint expects. Remove the headers in the dashboard or upgrade, and it sends again. Webhooks without headers keep working on every plan.

Connect it in LivePulser

  1. Open Integrations & API and select Webhook, or select it under Connect a new service in a monitor's alert settings. You need the owner, admin or member role.
  2. Enter a Display name and the URL of your endpoint. It must be a public http or https address; private, internal and loopback addresses are refused.
  3. On a paid plan, optionally add up to five Custom headers, for example Authorization: Bearer <token>. Header values are stored encrypted and never shown again.
  4. Leave Send a test event before saving ticked and select Connect webhook. LivePulser sends a test event first; if your endpoint doesn't answer with a 2xx status, nothing is saved.
  5. Copy the signing secret (it starts with whsec_). It's shown only once. Store it where your endpoint can read it.

Then attach the webhook to monitors: on a monitor's page, select Alerts, tick the webhook under Integrations and save.

What LivePulser sends

Each alert is an HTTP POST with Content-Type: application/json and these headers:

HeaderValue
LivePulser-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256>. See below.
LivePulser-EventThe event name, the same as event in the body.
LivePulser-DeliveryThe alert's ID, the same as id in the body. It stays the same on every retry, so use it to ignore duplicates.
User-AgentLivePulser-Webhook/1
Request body
{
"version": 1,
"id": "6b1f0c52-6f4e-5a0e-9d6c-1f2a3b4c5d6e",
"event": "incident.started",
"occurred_at": "2026-11-14T09:15:02Z",
"test": false,
"team_id": "<team-id>",
"monitor": { "id": "<monitor-id>", "name": "Example API", "type": "http" },
"incident": { "id": "<incident-id>", "type": "general", "duration_seconds": null },
"region": "us-east-1",
"message": "<failure details>",
"url": "https://dashboard.livepulser.com/incidents/<incident-id>?team=<team-id>"
}
FieldMeaning
versionThe payload version, 1. New fields may be added within a version; ignore the ones you don't know.
eventincident.started when an incident opens, incident.resolved when it closes, heartbeat.unexpected_run when a scheduled cron job runs outside its schedule, domain.expiring for a domain expiry reminder 30, 14, 7 or 1 day before the date, domain.expired for the reminder after it, certificate.expiring for a certificate expiry reminder 30, 14, 7 or 1 day before the certificate expires, and test for test events.
occurred_atWhen it happened, in UTC (RFC 3339).
testtrue for the Test button, the validation event and a monitor's Send test notification.
monitorThe monitor's ID, name and type (http, keyword, ping, port, heartbeat or resource).
incidentThe incident's ID and type (general or ssl), and on incident.resolved how long it lasted in seconds. null for test, unexpected-run, domain expiry and certificate expiry events.
regionThe probe node whose check failed or recovered, such as us-east-1; global for cron, server agent, domain expiry and certificate expiry alerts.
messageA human-readable description: the failure details on incident.started, the reminder text on domain and certificate expiry events.
urlA link to the incident in the dashboard, or to the monitor for domain and certificate expiry events and a monitor's Send test notification. Empty for unexpected-run events and for the Test button and validation events.

Verify the signature

v1 is the hex HMAC-SHA256 of the string <t>.<raw body>, keyed with your whole signing secret (including the whsec_ prefix). To verify a request:

  1. Read the raw request body before any JSON parsing; re-serialized JSON won't match.
  2. Split LivePulser-Signature on commas into t and v1.
  3. Reject the request if t is more than 5 minutes from your clock, so an old request can't be replayed.
  4. Compute the HMAC yourself and compare it with v1 in constant time.

Node.js

verify.js
import crypto from "node:crypto"

// rawBody: the request body exactly as received (a string or Buffer), before JSON parsing.
export function verifyLivePulser(rawBody, signatureHeader, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(signatureHeader.split(",").map((kv) => kv.split("=")))
const t = Number(parts.t)
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false
const expected = crypto.createHmac("sha256", secret).update(`${t}.`).update(rawBody).digest()
const received = Buffer.from(parts.v1 ?? "", "hex")
return received.length === expected.length && crypto.timingSafeEqual(received, expected)
}

Python

verify.py
import hashlib
import hmac
import time

def verify_livepulser(raw_body: bytes, signature_header: str, secret: str, tolerance: int = 300) -> bool:
  parts = dict(p.split("=", 1) for p in signature_header.split(","))
  t = int(parts.get("t", "0"))
  if abs(time.time() - t) > tolerance:
      return False
  expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
  return hmac.compare_digest(expected, parts.get("v1", ""))

Go

verify.go
func VerifyLivePulser(body []byte, signatureHeader, secret string, tolerance time.Duration) bool {
var ts, sig string
for _, p := range strings.Split(signatureHeader, ",") {
	k, v, _ := strings.Cut(p, "=")
	switch k {
	case "t":
		ts = v
	case "v1":
		sig = v
	}
}
t, err := strconv.ParseInt(ts, 10, 64)
if err != nil || time.Since(time.Unix(t, 0)).Abs() > tolerance {
	return false
}
mac := hmac.New(sha256.New, []byte(secret))
mac.Write([]byte(ts + "."))
mac.Write(body)
return hmac.Equal([]byte(hex.EncodeToString(mac.Sum(nil))), []byte(sig))
}

Delivery and retries

LivePulser waits up to 10 seconds for your endpoint. Any 2xx status counts as delivered. A 410 Gone means the endpoint is gone for good: LivePulser stops and the integration shows Not delivering until a send works again. Anything else, a timeout or a connection error is retried with growing delays, up to 10 attempts over about 13 minutes. Redirects aren't followed: answer at the URL itself. Each attempt is signed afresh, so t is always recent. A domain expiry reminder that fails is tried again on a later hourly check.

Answer quickly with a 2xx and do slow work afterwards. Because an alert can arrive more than once, use LivePulser-Delivery to skip ones you've already handled. For HTTP, keyword, ping and port monitors, the incident timeline in the dashboard shows whether each webhook delivery succeeded.

Common problems

What you seeCause and fix
webhook URL must point to a public internet addressThe URL's host is, or resolves to, a private, internal or loopback address. Use a public hostname; for local testing, expose your endpoint with a tunnel.
Test delivery failed: webhook endpoint returned HTTP <code>Your endpoint answered, but not with a 2xx. Check its logs; a 401 or 403 often means a missing or wrong custom header or signature check.
Paused: custom headers need a paid planThe team is on Free and the webhook has custom headers. Remove the headers, or upgrade.
Signature doesn't matchMake sure you hash the raw body, use the full secret including whsec_, and haven't regenerated the secret since you copied it.

Next steps

Prefer a hosted workflow tool? Make and Power Automate work too.