Webhook reference

On this page

This page is the reference for what a webhook request contains. For setup steps and a verification example, see the webhook integration page.

Which event types are sent?

typeWhenFields
down, upA check changed statusstatus, reason, at, check, last_ping_at, last_duration_seconds, outage
digestMany alerts were grouped for a channelchecks (a list of the alert bodies) and more
flappingA check changed status five or more times in 30 minutescheck (unique_key, name, slug), held_until
flap_releaseThe hold endedstatus, check
testYou pressed Send testproject, channel

Webhook receivers get one event per check for status changes, so a machine never has to unpack a digest unless it is the grouping of a very large burst.

Which headers are sent?

HeaderValue
webhook-idA unique id for the message; use it to ignore a repeated delivery
webhook-timestampUnix time in seconds when the attempt was made
webhook-signaturev1, followed by the base64 HMAC-SHA256 of id.timestamp.body
content-typeapplication/json for a JSON body, text/plain otherwise, unless you set one

How is the signature built?

The scheme is the Standard Webhooks specification. The signing key is the channel's secret with any whsec_ prefix removed and the rest base64 decoded. The signed content is the message id, a full stop, the timestamp, a full stop and the exact body. A GET request has an empty body and is signed over the empty string.

A secret is shown once when the channel is created, and is never returned by the API afterwards. Create a new channel to rotate it.

How are retries and limits handled?

A request times out after 5 seconds, and a 2xx answer is a success. Redirects are not followed. Only public addresses are called. Retries follow the notifications schedule, and at most 200 characters of the response are kept in the delivery log.

Sources

Try it on one job

Create a check, copy its ping URL into the job, and watch the first ping arrive.

Start monitoring