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
- In the Pingzo dashboard, open Alert Channels and click Add Channel.
- Choose Webhook.
- Paste the HTTPS URL that should receive the alerts.
- Optionally add a recipient name.
- 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:
POSTwithContent-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.
event | When it is sent |
|---|---|
down | A monitor went down (an incident opened) |
up | A monitor recovered |
ssl.expiry_warning | A certificate is close to expiring |
ssl.expired | A certificate has expired |
domain.expiry_warning | A domain registration is close to expiring |
domain.expired | A domain registration has expired |
dns.change_detected | DNS records changed |
email.auth_failing | Email authentication (SPF, DKIM, DMARC) problems were found |
email.auth_recovered | Email authentication is healthy again |
probe.opt_out | Monitoring was paused after an opt-out request |
Monitor events (down, up, SSL, domain, DNS, opt-out)
| Field | Meaning |
|---|---|
monitor_id, monitor_name, url | The monitor that triggered the alert |
incident_id | Present on down and up |
status | down or up, present on down and up |
text, content | A ready-to-post one-line message (the same text in both fields) |
days_remaining | Days left, on SSL and domain warnings |
dns_changes | List of changes, on dns.change_detected |
target | The 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
| Field | Meaning |
|---|---|
email_domain_id, domain | The domain checked |
status | failing or recovered |
health_score | Score out of 100 |
critical_issues | List of problems found |
text, content | One-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.