ModelRig Docs Leaderboard Console ↗ Sign up

Notifications (Slack and signed webhooks)

When a daily check raises a new finding for your organization, ModelRig can send a short digest to a Slack channel or to a webhook you run. Each digest carries metadata only: the route, the model, the numbers behind the finding and a link to the console. It never carries prompts, outputs, artifact content, grader comments or your end users' identifiers.

Rolling out. Notifications are not yet available for every organization. Until they are, Account settings → Notifications says so and GET /v1/orgs/:org/settings reports notifications_available: false. The MCP tools add_notification_channel and test_notification_channel need modelrig-oracle 0.8.0 or newer.
Notifications are server-side; no SDK change is needed. Only an owner (or a key with the org-settings scope, which only an owner can create) can change them.

What can notify you

EventRaised byWhen
conform_degradation — quality dropped on a routethe Monitor checkdaily
price_change — a model you use changed pricethe price watchevery 6 hours
new_model — a new model is available for a routethe price watchevery 6 hours
regret_breach — regret drifted upthe regret monitordaily, once that check is running for your deployment
insight — a new Rig Analyst findingthe Rig Analystdaily
spend_paused — managed spend was pausedthe managed-spend capwhen it happens

When you turn notifications on, every event is on except new_model, which most teams find noisy. Change any of them in Account settings → Notifications or with set_org_settings.

Timing and repeats

Set it up

In the console: Account settings → Notifications, then Add Slack or Add webhook, Send test, and turn notifications on.

Over the API (owner session, or a rig_sk_ key with org-settings):


POST /v1/orgs/:org/notifications/channels
{ "type": "webhook", "url": "https://hooks.example.com/modelrig", "label": "ops" }

201 { "channel": { "id": "ch_…", "type": "webhook", "label": "ops",
                   "url_hint": "hooks.example.com/…/rig", "disabled_reason": null,
                   "failures": 0, "last_delivery": null },
      "signing_secret": "<64 hex characters — shown once>" }

POST   /v1/orgs/:org/notifications/channels/:id/test   → { "ok": true, "status": 200, "ms": 140 }
DELETE /v1/orgs/:org/notifications/channels/:id        → 204
PATCH  /v1/orgs/:org/settings { "notifications": { "enabled": true, "events": { "new_model": true } } }

Over MCP: add_notification_channel, test_notification_channel, and set_org_settings with notifications.

MCP needs modelrig-oracle 0.8.0 or newer.

Receiver URL rules

ModelRig checks the URL when you save it and every time it sends:

Slack message

A short Block Kit message: a headline, one section per finding (the finding, the route / task / model, its numbers) and a button to the Action queue. Route and task names are escaped, so a name can never mention @channel or inject a link.

Webhook payload

POST with content-type: application/json:


{
  "v": 1,
  "delivery_id": "dlv_8f1c…",
  "org": "acme",
  "sent_at": "2026-11-01T12:30:04.112Z",
  "events": [
    {
      "event": "conform_degradation",
      "proposal_id": "6c0d…",
      "route": "summarize",
      "task": "summarize",
      "model": null,
      "created_at": "2026-11-01T12:01:55.019Z",
      "metrics": { "drop_pts": 12.5, "recent_rate": 0.81, "baseline_rate": 0.935, "recent_n": 120, "baseline_n": 900 },
      "escalation": false,
      "title": "Quality dropped on summarize (−12.5 pts)",
      "link": "https://app.modelrig.ai/insights?proposal=6c0d…"
    }
  ],
  "more": 0,
  "console_url": "https://app.modelrig.ai/insights"
}

Headers:

HeaderValue
X-ModelRig-DeliveryThe delivery_id (unique per channel per run).
X-ModelRig-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256(signing_secret, t + "." + raw body)>
User-AgentModelRig-Notify/1

Verify the signature (Node)

Verify against the raw request body, before parsing it, and reject timestamps more than 5 minutes old (replay window).


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

export function verifyModelRig(rawBody, header, secret, nowSeconds = Math.floor(Date.now() / 1000)) {
  const parts = Object.fromEntries(header.split(",").map((kv) => kv.split("=")));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(nowSeconds - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Boundary