NotiFi
Integrations

UniFi stock alerts in Slack.

Handy for IT teams: the moment a gateway or switch you need comes back in stock, it lands in the channel where purchasing decisions actually happen. Slack's incoming webhooks expect Slack's message format, so a tiny relay sits between NotiFi and Slack; the complete code is below.

01Create the Slack incoming webhook

In Slack: create (or open) an app at api.slack.com/apps, enable Incoming Webhooks, and add one for the channel that should get restock alerts. Copy the webhook URL it gives you.

02Deploy the relay Worker

Create a Cloudflare Worker (free tier is fine) with this code and set two secrets: SLACK_WEBHOOK_URL from step 1 and NOTIFI_TOKEN, a long random string of your choosing.

export default {
  async fetch(request, env) {
    if (request.method !== "POST") return new Response(null, { status: 405 });
    if (request.headers.get("Authorization") !== `Bearer ${env.NOTIFI_TOKEN}`) {
      return new Response(null, { status: 401 });
    }
    const alert = await request.json();
    if (alert.event !== "in_stock") return new Response(null, { status: 200 });

    const price =
      alert.price?.amount != null
        ? ` at $${(alert.price.amount / 100).toFixed(2)}`
        : "";
    await fetch(env.SLACK_WEBHOOK_URL, {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({
        text: `:package: *${alert.product.title}* is back in stock${price}\n${alert.product.url}`,
      }),
    });
    return new Response(null, { status: 200 });
  },
};

03Point NotiFi at the relay

In NotiFi: Settings, then Webhook. Paste the Worker's URL, set the same bearer token, and hit Test to see the message land. Every restock alert for your watched products now posts to Slack the moment it fires; payload details live in the webhook documentation.

UniFi restocks, in Slack, within minutes.

NotiFi watches every product on the UniFi store around the clock. Webhooks are included in the Ultra plan, alongside the fastest alert delivery tier.

Download on the App StoreComing soonGoogle Play

Full payload and signature details in the webhook documentation.