Skip to main content
Back to blog

Ubiquiti Restock Webhooks: Custom HTTP Alerts with HMAC

July 8, 20265 min read

Email, Discord, and Slack cover most people, but if you want to build your own restock workflow — trigger a purchase script, drop a row in a database, kick off a job, or forward to an internal tool — UIPing's custom webhooks give you the raw event. Every stock change on a monitored ui.com page becomes an HTTP POST you control.

What a Webhook Delivers

When a monitored page changes, UIPing sends a JSON POST to your endpoint describing what happened: the monitor, the URL, the type of change (stock, price, or content), a human-readable summary, and a timestamp. Your endpoint decides what to do with it.

Verifying Requests with HMAC

Because your endpoint is public, you need to be sure a request really came from UIPing. Every custom webhook is signed: UIPing computes an HMAC-SHA256 of the request body using a secret you configure and sends it in a signature header. Your endpoint recomputes the HMAC over the received body with the same secret and compares — if they match, the request is authentic and untampered. Reject anything that does not match, and use a constant-time comparison to avoid timing leaks.

Step-by-Step Setup

Step 1: Stand Up an Endpoint

You need a public HTTPS URL that accepts POST requests. It can be a small serverless function, a route in an existing app, or an automation platform's inbound webhook.

Step 2: Add the Webhook in UIPing

Sign up, open the Webhooks page, click "Add Webhook," choose Custom, paste your URL, and set a signing secret. Custom webhooks are available on paid plans; see pricing for limits.

Step 3: Verify the Signature

On your endpoint, read the raw request body, compute HMAC-SHA256 with your secret, and compare it to the signature header before trusting the payload.

Step 4: Attach It to a Monitor

Add a ui.com product or category page and enable your custom webhook. Use the test button to send a sample event and confirm your endpoint accepts it.

What You Can Build

  • Notify a purchasing system — open a ticket or add to a buy list the instant a switch is back
  • Data logging — record every restock and price change to spot patterns in Ubiquiti's release cadence
  • Chain integrations — forward to an automation platform to fan out to SMS, calendars, or spreadsheets
  • Custom filtering — act only on specific change types, like back-in-stock but not price changes

Webhooks vs Built-in Channels

If you just want to be notified, Discord, Slack, ntfy, and email need zero code. Custom webhooks are for when you want to do something with the event automatically. Many users run both — a Discord ping for humans and a webhook for automation.

Get Started

Create your UIPing account, add a custom webhook, and start automating your Ubiquiti restock workflow. For the full monitoring picture, read the complete guide to Ubiquiti product monitoring.

ShareXLinkedIn

Ready to start monitoring?

Set up Ubiquiti stock alerts in under 60 seconds. Free plan available.