What does PageLantern POST to my endpoint?
A JSON body describing the event, the monitor it concerns, and the check result that triggered it. The request is a POST with Content-Type: application/json. Your endpoint should respond 2xx promptly; we treat anything else as a delivery failure and record it in the delivery history.
Respond first and process afterwards. A webhook consumer that does its work synchronously before replying is a webhook consumer that starts timing out during exactly the incident it was built for.
{
"eventType": "incident",
"action": "OPENED",
"incidentType": "AVAILABILITY",
"severity": "SEV2",
"monitorId": 4812,
"monitorName": "Checkout API",
"monitorUrl": "https://api.example.com/v1/checkout",
"incidentId": 90211,
"title": "Checkout API is failing",
"message": "Expected status 200, received 503",
"openedAt": "2026-08-07T14:22:07Z",
"resolvedAt": null,
"durationMinutes": null,
"statusCode": 503,
"responseTimeMs": 1184,
"triggerType": "SCHEDULED",
"appUrl": "https://pagelantern.com/incidents?incident=90211"
}How do I protect my webhook endpoint?
Use an unguessable HTTPS endpoint URL as the shared secret. PageLantern encrypts the saved URL and sends unsigned requests. Keep the URL out of screenshots and logs. If it is exposed, rotate it on your receiving service and update the PageLantern destination.
Validate the payload shape before processing each request. For example, check that eventType and monitorId are present and well formed.
What happens if my endpoint is down?
The delivery is recorded as failed and is visible in the notification history for that monitor and incident. Webhook delivery is best-effort: we do not queue indefinitely and we do not guarantee ordering or exactly-once delivery.
Use the incident ID to link events to the same incident. Deduplicate repeats of the same event while still processing distinct updates, including recovery.
