Docs · paid plan

Webhook alerts

Qurren posts to your endpoint, or to Slack, before an AI model, runtime or GitHub Action your code uses stops working: 30, 7 and 1 days ahead, and on the day. Set it up under Dashboard → Alerts. Alerts come with the paid plan and are never billed as calls.

Events

TypeWhenDates from
model.retiring30, 7 and 1 days before a model you use retiresThe providers' deprecation pages (Anthropic, OpenAI), as served by the API
model.retiredOn the day it retires (requests to it start failing)Same
runtime.eol30, 7 and 1 days before a Node.js or Python version (or a Docker base image on it) reaches end-of-life, and on the dayendoflife.date
action.deprecatedReserved: GitHub doesn't publish deprecation dates for action majors, so this doesn't fire yet-
testWhen you press "Send test event"-

Each alert is sent once per item and threshold. If an item first shows up close to its date, you get only the nearest alert, not a burst. The checks run once a day at 07:00 UTC.

What Qurren watches

The watchlist fills itself from your own checks: the public names of the models, runtimes and actions /v1/check flagged (never code, file paths or private names). Owners and admins can add or remove items on the Alerts page.

Payload

A POST with Content-Type: application/json. days_left is 0 on the day and after.

Body
{
  "id": "evt_3f9c2a7d1b8e4c6f9a0b5d2e7c1f4a8b",
  "type": "model.retiring",
  "created": 1798009200,
  "data": {
    "item": "claude-opus-4-5-20251101",
    "kind": "model",
    "retires_on": "2027-01-22",
    "days_left": 30,
    "replacement": "claude-opus-5-5",
    "source_url": "https://platform.claude.com/docs/en/about-claude/model-deprecations"
  }
}

Headers: Qurren-Signature, Qurren-Event-Id, Qurren-Event-Type. Answer with any 2xx within 5 seconds; redirects aren't followed. Use id to ignore a delivery you've already handled.

Verify the signature

Every endpoint has its own signing secret (whsec_…), shown once when you add it; "Rotate secret" replaces it at once. The header is Qurren-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of <t>.<raw body> with the secret: the same scheme as Stripe. Compare in constant time and reject old timestamps.

Node.js
import { createHmac, timingSafeEqual } from "node:crypto";

// raw = the request body exactly as received (a string or Buffer, not re-serialised JSON)
export function verifyQurren(raw, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
  const t = Number(parts.t);
  if (!t || !parts.v1 || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const want = createHmac("sha256", secret).update(`${t}.${raw}`).digest("hex");
  return want.length === parts.v1.length && timingSafeEqual(Buffer.from(want), Buffer.from(parts.v1));
}

// Express: app.post("/qurren", express.raw({ type: "application/json" }), (req, res) => {
//   if (!verifyQurren(req.body.toString("utf8"), req.get("Qurren-Signature"), process.env.QURREN_WEBHOOK_SECRET)) return res.sendStatus(400);
//   const event = JSON.parse(req.body); /* … */ res.sendStatus(200);
// });
Python
import hmac, hashlib, time

def verify_qurren(raw: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t = int(parts.get("t", "0"))
    if not t or "v1" not in parts or abs(time.time() - t) > tolerance:
        return False
    want = hmac.new(secret.encode(), f"{t}.".encode() + raw, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, parts["v1"])

# Flask: raw = request.get_data(); header = request.headers["Qurren-Signature"]

Retries and failing endpoints

A delivery that doesn't get a 2xx is tried again after 1 min, 5 min, 30 min, 2 h, 12 h (the hourly job sends what's due, so the early retries go out within the hour). After 5 failures in a row the endpoint is marked failing, new alerts to it pause, and the organisation's owners and admins get one email. A successful test event turns it back on.

URLs must be https:// on port 443 and resolve to public addresses only: private, loopback, link-local and cloud metadata addresses are refused, and the request goes to the address that was checked.

Slack

Pick the Slack format and paste a Slack incoming webhook URL (https://hooks.slack.com/…; create one in Slack under Apps → Incoming Webhooks). Qurren then sends one readable line with a link instead of the signed JSON:

Slack body
{
  "text": "Qurren: `claude-opus-4-5-20251101` retires in 30 days, on 22 Jan 2027. Use claude-opus-5-5. <https://platform.claude.com/docs/en/about-claude/model-deprecations|Source>"
}