Pushover is the notification app a lot of operations people already carry: one inexpensive app, a simple API, and a priority system that can do something most chat tools cannot, which is keep alerting until a human acknowledges. For a solo developer or a three-person team that does not want to pay for a paging service, that one feature is the reason to use it.

CronAlert has no native Pushover channel. Its webhook channel sends a fixed JSON document, and Pushover's API wants token, user, and message, so pointing one at the other produces a 4xx and a failed delivery in CronAlert's log. The fix is a small relay: a Cloudflare Worker that verifies CronAlert's signature, builds the Pushover message, and posts it. It is the same pattern as the Google Chat and incident.io relays, with one addition that makes it worth a post of its own: the relay cancels an emergency alert automatically when the monitor recovers. The webhook channel is on every CronAlert plan, including Free.

Pushover or the built-in push channel?

CronAlert's own push notifications are free, work on iOS, Android, Mac, and Windows, and need no relay. If a normal notification is enough, use them and stop reading. Pushover earns the extra moving part when you want any of these:

  • Priority per message. High priority bypasses the recipient's quiet hours; emergency priority repeats until acknowledged.
  • One key for several people. A delivery group has a key that looks like a user key and fans out to every member.
  • One app for everything. If your backups, your home lab, and your CI already notify through Pushover, uptime alerts belong in the same place.

Pushover is not a paging service. There are no schedules, no escalation to a second person after ten minutes, and no phone calls. If you need those, see on-call rotation for small teams and SMS and phone call alerts.

Step 1: an application token and a user key

  1. Log in at pushover.net. Your user key is shown on the dashboard. Treat it as private.
  2. Register an application (Pushover's API page links to the form; it is free). Name it CronAlert and, if you like, give it an icon so the alerts are recognisable. You get an API token: 30 case-sensitive letters and digits.
  3. Install the Pushover app on the devices that should receive alerts and log in.

Test from a terminal before building anything:

curl -sS https://api.pushover.net/1/messages.json \
  --form-string "token=APP_TOKEN" \
  --form-string "user=USER_KEY" \
  --form-string "title=CronAlert relay test" \
  --form-string "message=If you can read this, the token and key are right."

A success is HTTP 200 with {"status":1,"request":"…"}. A mistake is a 4xx with status other than 1 and an errors array that says what was wrong, for example user identifier is invalid.

Step 2: the relay Worker

CronAlert sends one POST on monitor.down and one on monitor.recovered, with the monitor's name and URL, the incident's startedAt and resolvedAt, the check that triggered it, and an HMAC-SHA256 signature of the raw body in X-CronAlert-Signature. The webhook reference has the full payload. The Worker below verifies the signature and sends a Pushover message. Ordinary monitors go out at high priority; monitors with [p1] in their name go out at emergency priority, and the recovery cancels the retries:

// CronAlert webhook → Pushover, emergency alerts cancelled on recovery
const API = "https://api.pushover.net/1";

export default {
  async fetch(request, env) {
    if (request.method !== "POST") return new Response("ok");
    const raw = await request.text();
    if (!(await verify(raw, request.headers.get("X-CronAlert-Signature"), env.CRONALERT_WEBHOOK_SECRET))) {
      return new Response("bad signature", { status: 401 });
    }
    const a = JSON.parse(raw);
    const down = a.event === "monitor.down";
    const critical = /\[p1\]/i.test(a.monitor.name);
    const detail = a.check.statusCode ? `HTTP ${a.check.statusCode}` : (a.check.errorMessage ?? "no response");
    const where = a.check.region ? ` from ${a.check.region}` : "";
    // Same tag for the down and recovered events of one incident, no storage needed
    const tag = `ca${hash(a.monitor.url + a.incident.startedAt)}`;

    const msg = {
      token: env.PUSHOVER_TOKEN,
      user: env.PUSHOVER_USER,                       // a user key or a group key
      title: (down ? `DOWN: ${a.monitor.name}` : `Recovered: ${a.monitor.name}`).slice(0, 250),
      message: (down ? `${detail}${where}` : `Back up after ${minutes(a.incident)} min`).slice(0, 1024),
      timestamp: Math.floor(new Date(a.timestamp).getTime() / 1000),
    };
    if (/^https?:/.test(a.monitor.url) && a.monitor.url.length <= 512) {
      msg.url = a.monitor.url;
      msg.url_title = "Open the monitored URL";
    }

    if (down && critical) {
      Object.assign(msg, { priority: 2, retry: 60, expire: 3600, tags: tag, sound: "siren" });
    } else if (down) {
      msg.priority = 1;                              // bypasses quiet hours
    } else {
      msg.priority = 0;
      if (critical) {
        // Stop the emergency retries for this incident; a failure here must not block the recovery message
        await fetch(`${API}/receipts/cancel_by_tag/${tag}.json`, {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify({ token: env.PUSHOVER_TOKEN }),
        }).catch(() => {});
      }
    }

    let res = await send(msg);
    if (res.status >= 500) {                         // Pushover: retry 5xx, no sooner than 5 seconds later
      await new Promise((r) => setTimeout(r, 5000));
      res = await send(msg);
    }
    return new Response(null, { status: res.ok ? 204 : 502 });   // 502 → CronAlert logs a failed delivery
  },
};

const send = (msg) => fetch(`${API}/messages.json`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify(msg),
});
const minutes = (i) => Math.max(1, Math.round((new Date(i.resolvedAt) - new Date(i.startedAt)) / 60000));
const hash = (s) => [...s].reduce((h, c) => (Math.imul(31, h) + c.charCodeAt(0)) | 0, 7).toString(36).replace("-", "m");

async function verify(raw, header, secret) {
  if (!header || !secret) return false;
  const key = await crypto.subtle.importKey("raw", new TextEncoder().encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
  const sig = await crypto.subtle.sign("HMAC", key, new TextEncoder().encode(raw));
  const hex = [...new Uint8Array(sig)].map((b) => b.toString(16).padStart(2, "0")).join("");
  return hex.length === header.length && crypto.subtle.timingSafeEqual(new TextEncoder().encode(hex), new TextEncoder().encode(header));
}

Deploy it with wrangler deploy, then set three secrets: PUSHOVER_TOKEN, PUSHOVER_USER, and CRONALERT_WEBHOOK_SECRET (a random string you will paste into CronAlert in the next step). Pushover accepts JSON when the request carries Content-Type: application/json, which is what the Worker sends; form encoding works equally well.

Step 3: point CronAlert at the Worker

  1. In CronAlert, open Settings → Alert channels and add a Webhook channel.
  2. URL: your Worker's address, e.g. https://cronalert-pushover.you.workers.dev. Secret: the same value you stored as CRONALERT_WEBHOOK_SECRET.
  3. Save and use Send test. The notification should arrive within a couple of seconds.

Alert channels in CronAlert are team-wide: every monitor on the team sends to every enabled channel. The [p1] tag in the monitor name is how this relay tells critical monitors from the rest; if different monitors should reach different people, either give the relay several user keys and choose by tag, or split the monitors across teams. Alert routing with teams covers both, and naming conventions for monitors has a tag format that survives growth.

Priorities, and which one an outage deserves

PriorityWhat Pushover doesUse it for
-2 lowestNo notification at all; the message just appears in the appNothing in uptime alerting
-1 lowNotification without sound or vibrationRecoveries, if you find them noisy
0 normalSound and vibration, respecting quiet hoursRecoveries; staging monitors
1 highBypasses the recipient's quiet hours, shown highlightedProduction monitors
2 emergencyRepeats until the recipient acknowledgesThe few monitors worth waking someone for

Emergency priority needs two more parameters, and Pushover rejects the message without them. retry is the gap between repeats in seconds and must be at least 30. expire is how long to keep trying and can be at most 10,800 seconds (three hours). There is also a cap of 50 retries per message whatever expire says, so the Worker's retry: 60, expire: 3600 buzzes once a minute for up to fifty minutes. The response to an emergency message includes a receipt, which you can poll (no more often than every five seconds) to see whether and by whom it was acknowledged; an optional callback URL gets a POST when it is.

Be sparing. A phone that sirens every minute for a marketing page teaches its owner to uninstall the app. Reserve [p1] for the checkout, the login, the API, and read alert fatigue before adding a fourth.

Cancelling on recovery

Acknowledging stops the repeats, but an outage that fixes itself at 03:12 should not keep ringing until 04:00 because nobody tapped the notification. Pushover offers two ways to cancel: by receipt (POST /1/receipts/RECEIPT/cancel.json) and by tag (POST /1/receipts/cancel_by_tag/TAG.json), both with the application token as a parameter. Cancelling by receipt means storing the receipt somewhere between the down event and the recovery. Cancelling by tag does not: the Worker derives the tag from the monitor URL and the incident's startedAt, and both fields are identical in the down and recovered payloads, so the recovery computes the same tag and cancels exactly that incident's alert. No KV namespace, no database.

One consequence worth knowing: a blip that opens and closes an incident within a minute or two produces an emergency alert, one or two repeats, and then a recovery. That is the behaviour you asked for. If it happens often, the monitor is flapping, and the fix is on the monitoring side: reducing false positives.

A team on one key

Pushover's delivery groups give several people a single key that looks exactly like a user key. Put the group key in PUSHOVER_USER and every member is notified. With emergency priority, the first member to acknowledge cancels the retries for the others, which is a workable "whoever sees it first" arrangement for a small team. Two things to keep in mind: a message to a group counts once per member against the monthly allowance, and a group is not a rotation; everyone is alerted every time.

Limits and failure handling

  • Sizes. Message 1,024 characters, title 250, URL 512, URL title 100. The Worker truncates the first two and omits the link when the monitor's URL is too long or is not HTTP (a tcp:// monitor, for instance).
  • 10,000 messages a month free. Past that, Pushover rejects sends with HTTP 429 until the counter resets at 00:00 Central Time on the 1st. Every response carries X-Limit-App-Remaining. Uptime alerts will not get near the limit unless something is flapping.
  • Do not retry a 4xx. Pushover's guidance is that an identical request will fail again, and repeated bad requests get the sending IP blocked temporarily. A 5xx or no answer may be retried, no sooner than five seconds later, which is what the Worker does once.
  • Two concurrent connections. Pushover asks clients not to open more than two at a time. One outage is one request. A shared failure that takes forty monitors down in the same check cycle is forty Worker invocations at once; if you run a fleet behind one proxy, have the relay queue its sends, or keep the fleet on a normal channel and put only a few sentinel monitors on Pushover.
  • The relay is a single point of failure. CronAlert records a non-2xx from the relay as a failed delivery, and the Worker returns 502 when Pushover refuses a message so that you see it. Keep a second channel, email or the built-in push, on anything that matters, and test the whole path after you set it up.

Frequently asked questions

Can I skip the Worker and use Apprise instead?

Yes. If you already run Apprise API, a pover:// URL reaches Pushover along with everything else Apprise speaks; see uptime alerts through Apprise. You still need a relay in front of Apprise, and you lose the cancel-on-recovery step unless you add it, so the direct Worker is the simpler choice when Pushover is the only destination.

Can I choose the sound?

Yes, with the sound parameter. The Worker uses siren for emergency alerts and the recipient's default otherwise. Pushover documents the built-in names and supports custom sounds uploaded to your account.

Can I send to one device only?

Add device with the device's name (or several, comma-separated) to send to it alone. It is ignored for ordinary group keys.

What does Pushover cost?

For individuals, a one-time $4.99 per platform (iOS, Android, Desktop) after a 30-day trial, with no subscription. Pushover for Teams is $5 per user per month and raises the monthly allowance. Check their pricing page for the current figures.

Is any of this on a paid CronAlert plan?

No. The webhook channel is on every plan, Free included, and the Worker runs inside Cloudflare's free tier. Pro adds keyword assertions, heartbeat monitors, and 1-minute checks, which change what you alert on rather than where the alert goes.

Get started

One application token, one Worker, one webhook channel, and the monitors you mark [p1] will keep buzzing until someone answers or the site comes back. Create a free CronAlert account, add the channel, and send the test. Related reading: the webhook payload and Zapier, Make, n8n, and ntfy recipes, ntfy and Gotify alerts for a self-hosted equivalent, on-call rotation for small teams, SMS and phone call alerts, and routing alerts with teams.