Integration Guide

Custom Webhook Alerts: Payload Reference and Setup

Configure real-time service health notifications and dynamic payload parameters.

Alert Payload Builder

Interactively customize and preview real-time JSON alert cards.

webhook
JSON
{
  "event": "monitor.down",
  "monitor_id": "mon_cl6739f4a00192837",
  "monitor_name": "Production API Gateway",
  "url": "https://api.yourdomain.com/v1/health",
  "status": "down",
  "trigger_time": "2026-11-23T02:02:28.705Z",
  "incident": {
    "id": "inc_cl89d421e0283749",
    "error_message": "Response timeout after 10000ms",
    "duration_seconds": null
  }
}
Gated on paid tiers (Starter onwards) for Slack, Discord, MS Teams, and Webhook dispatch channels.

A custom webhook channel makes Pingzo send an HTTP POST with a JSON body to a URL you choose whenever an alert fires. Use it to connect Pingzo to your own server, a serverless function, an automation tool, or a chat service that accepts plain JSON.

Webhook channels are available on the Starter plan and above.


Set it up

  1. In the Pingzo dashboard, open Alert Channels and click Add Channel.
  2. Choose Webhook.
  3. Paste the HTTPS URL that should receive the alerts.
  4. Optionally add a recipient name.
  5. Save, then click Test on the new channel.

The test sends this payload, so you can check your endpoint end to end:

{
  "event": "test.notification",
  "monitor_name": "Pingzo Test Monitor",
  "status": "up",
  "timestamp": "2026-11-23T09:41:07.000Z",
  "message": "This is a test notification from Pingzoapp",
  "text": "Pingzo Test Alert: Your webhook is connected and working perfectly!",
  "content": "Pingzo Test Alert: Your webhook is connected and working perfectly!"
}

How requests are sent

  • Method and format: POST with Content-Type: application/json.
  • No custom headers and no signature. Pingzo can't add an API key header or sign the body. See "Keep your endpoint safe" below.
  • Respond quickly. The Test button waits 5 seconds and counts any non-2xx response as a failure. Return a 2xx as soon as you have accepted the request, and do slow work afterwards.

Payload fields

The event value tells you what happened. Every payload has event and time.

eventWhen it is sent
downA monitor went down (an incident opened)
upA monitor recovered
ssl.expiry_warningA certificate is close to expiring
ssl.expiredA certificate has expired
domain.expiry_warningA domain registration is close to expiring
domain.expiredA domain registration has expired
dns.change_detectedDNS records changed
email.auth_failingEmail authentication (SPF, DKIM, DMARC) problems were found
email.auth_recoveredEmail authentication is healthy again
probe.opt_outMonitoring was paused after an opt-out request

Monitor events (down, up, SSL, domain, DNS, opt-out)

FieldMeaning
monitor_id, monitor_name, urlThe monitor that triggered the alert
incident_idPresent on down and up
statusdown or up, present on down and up
text, contentA ready-to-post one-line message (the same text in both fields)
days_remainingDays left, on SSL and domain warnings
dns_changesList of changes, on dns.change_detected
targetThe paused target, on probe.opt_out

Example for a down alert:

{
  "event": "down",
  "time": "2026-11-23T09:41:07.000Z",
  "monitor_id": "clx...",
  "monitor_name": "My API",
  "url": "https://api.example.com/health",
  "incident_id": "clx...",
  "status": "down",
  "text": "Pingzo Alert: My API is DOWN! View Status: https://...",
  "content": "Pingzo Alert: My API is DOWN! View Status: https://..."
}

Email authentication events

FieldMeaning
email_domain_id, domainThe domain checked
statusfailing or recovered
health_scoreScore out of 100
critical_issuesList of problems found
text, contentOne-line message

A minimal receiver

import express from 'express'
const app = express()
app.use(express.json())

// Keep this path secret, because Pingzo cannot sign requests
app.post('/hooks/pingzo/REPLACE_WITH_A_LONG_RANDOM_STRING', (req, res) => {
  const alert = req.body
  res.sendStatus(200) // answer first, then do the work

  if (alert.event === 'down') {
    console.log('DOWN:', alert.monitor_name, alert.url)
  } else if (alert.event === 'up') {
    console.log('RECOVERED:', alert.monitor_name)
  }
})

app.listen(3000)

Keep your endpoint safe

Anyone who learns your webhook URL can post fake alerts to it. Because Pingzo sends no secret header and no signature:

  • Put a long random string in the URL path or query string and treat the URL like a password.
  • Use HTTPS only.
  • Don't let a single alert trigger something destructive, such as an automatic restart, without a second check of your own.

Use it with chat tools that accept plain JSON

Pingzo includes both text and content in every payload. Services that accept a simple JSON message, such as a Slack incoming webhook (text) or a Discord webhook (content), can receive the alert text directly if you paste their webhook URL here. You get a plain text message, without buttons.

Pingzo also has dedicated channels for these: Slack, Discord and Microsoft Teams. They produce richer messages and are the better choice when they fit.


Troubleshooting

  • Test fails. Your endpoint must answer with 2xx within 5 seconds and be reachable from the internet. A URL on localhost or a private network won't work.
  • Webhook option is locked. It needs the Starter plan or above. See pricing.
  • You receive the alert twice. Check that you haven't added the same URL as two channels.

Related

Integration Benefits

  • Flat-Rate Dispatching

    Send unlimited notification alerts without dynamic usage costs or subscriber fees.

  • Automated Recoveries

    Pingzo resolves notifications automatically to keep your incident chat clean.

  • SSL Warning Handlers

    Get early warnings 30/14/7 days before certificates expire, right in your alert channels.

Hook your channels now

Link Slack, Discord, MS Teams, Telegram, and official WhatsApp numbers to keep your engineering team aligned.

Start Free Uptime Check