---
title: "Webhook alerts with signed requests"
url: "https://cronmissed.com/integrations/webhook.md"
canonical_url: "https://cronmissed.com/integrations/webhook"
last_updated: "2026-10-22"
type: "how-to"
summary: "Send CronMissed alerts to your own endpoint with a signed request, a JSON body or your own template, and a clear retry policy."
related: ["https://cronmissed.com/integrations.md", "https://cronmissed.com/integrations/slack.md", "https://cronmissed.com/integrations/ntfy.md", "https://cronmissed.com/docs/webhooks.md", "https://cronmissed.com/docs/errors.md"]
---

# Webhook alerts with signed requests

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Send CronMissed alerts to your own endpoint with a signed request, a JSON body or your own template, and a clear retry policy.

A webhook channel sends an HTTP request to your URL when a check goes down and another when it comes back. Each request is signed with the Standard Webhooks scheme, so your endpoint can prove it came from CronMissed, and the body is JSON unless you write your own template.

## How do I set up a webhook?

1. Add a webhook channel and enter a URL for down alerts, a URL for up alerts, or both.
2. Choose the method (GET, POST or PUT), add headers such as an authorization token, and optionally write a body template.
3. Copy the signing secret. It is shown once.
4. Press Send test, then assign the channel to your checks.

Addresses must be public: CronMissed refuses private and internal addresses, and does not follow redirects. A 3xx answer counts as a failure and the delivery log names the Location it pointed to.

## What does the default body look like?

```json
{
  "type": "down",
  "status": "down",
  "reason": "late",
  "at": "2026-10-23T03:25:00.000Z",
  "check": {
    "uuid": "…",
    "unique_key": "…",
    "name": "nightly-backup",
    "slug": "nightly-backup",
    "tags": ["backup", "prod"],
    "project": "Production",
    "dashboard_url": "https://cronmissed.com/dashboard"
  },
  "last_ping_at": "2026-10-22T03:15:00.000Z",
  "last_duration_seconds": 492,
  "outage": null
}
```

The `reason` is one of `late`, `fail_signal`, `start_timeout`, `first_ping_deadline` or `recovered`.

## Which placeholders can a template use?

| Placeholder | Value |
| --- | --- |
| {check_name}, {check_slug}, {check_tags} | The check's name, slug and space-separated tags |
| {check_uuid}, {check_unique_key} | Identifiers of the check |
| {project_name} | The project's name |
| {status}, {reason} | down or up, and the reason |
| {at}, {last_ping_at} | ISO 8601 times in UTC; the last ping is empty when there has been none |
| {duration_seconds} | The last run time in seconds, empty when unknown |
| {dashboard_url} | A link to the check |

In a URL each value is percent-encoded; in a JSON template each value is escaped for a JSON string. A GET sends no body.

## How do I verify the signature?

Every request carries `webhook-id`, `webhook-timestamp` and `webhook-signature`. The signature is `v1,` followed by the base64 HMAC-SHA256 of `id.timestamp.body`, keyed with the secret (drop a `whsec_` prefix, then decode the base64). Reject requests whose timestamp is more than a few minutes old, and use the id to ignore a repeated delivery.

```
import { createHmac, timingSafeEqual } from 'node:crypto';

export function verify(secret, headers, rawBody, toleranceSeconds = 300) {
  const id = headers['webhook-id'];
  const timestamp = headers['webhook-timestamp'];
  if (!id || !timestamp || Math.abs(Date.now() / 1000 - Number(timestamp)) > toleranceSeconds) return false;
  const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64');
  const expected = createHmac('sha256', key).update(`${id}.${timestamp}.${rawBody}`).digest('base64');
  return String(headers['webhook-signature'] ?? '').split(' ').some((part) => {
    const [version, signature] = part.split(',');
    return version === 'v1' && signature?.length === expected.length && timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
  });
}
```

## What happens when my endpoint fails?

A 2xx answer is a success. The request times out after 5 seconds. Network errors, 5xx answers and 429 answers are retried after 1, 5 and 15 minutes, four attempts in all, or after the time in a Retry-After header when that is longer and under 15 minutes. Other 4xx answers fail at once. After the last attempt the channel is marked failing and the project owner is emailed once a day while it stays that way.

## Questions

### Can I post to a service that expects a different JSON shape?

Yes. Write a body template with the placeholders above, matching the shape the service expects, and add any token as a header.

### Does CronMissed send one request per check?

Yes. Webhook receivers get one event per check, so a machine on the other end never has to unpack a digest.

## Sources

- [Standard Webhooks specification](https://github.com/standard-webhooks/standard-webhooks/blob/main/spec/standard-webhooks.md), read 22 October 2026

## Related pages

- [Slack](https://cronmissed.com/integrations/slack.md)
- [ntfy](https://cronmissed.com/integrations/ntfy.md)
- [Webhook reference](https://cronmissed.com/docs/webhooks.md)
- [Errors](https://cronmissed.com/docs/errors.md)

## Related

- [CronMissed integrations: where alerts can go](https://cronmissed.com/integrations.md)
- [Send cron job alerts to Slack](https://cronmissed.com/integrations/slack.md)
- [Send cron job alerts to ntfy](https://cronmissed.com/integrations/ntfy.md)
- [Webhook payloads, headers and signatures](https://cronmissed.com/docs/webhooks.md)
- [API errors: the envelope and every code](https://cronmissed.com/docs/errors.md)
